{
    "url": "https://delaparra-services.nl/knowledge-hub/content-type",
    "locale": "en",
    "title": "Content-Type: Knowledge hub | DeLaParra Services",
    "description": "The media type of the request body. Required when sending a body.",
    "alternates": {
        "en": "https://delaparra-services.nl/knowledge-hub/content-type",
        "nl": "https://delaparra-services.nl/nl/kennisbank/content-type"
    },
    "formats": {
        "csv": "https://delaparra-services.nl/knowledge-hub/content-type.csv",
        "md": "https://delaparra-services.nl/knowledge-hub/content-type.md",
        "json": "https://delaparra-services.nl/knowledge-hub/content-type.json",
        "zip": "https://delaparra-services.nl/knowledge-hub/content-type.zip",
        "pdf": "https://delaparra-services.nl/knowledge-hub/content-type.pdf"
    },
    "downloads": [
        {
            "url": "https://delaparra-services.nl/knowledge-hub/content-type.csv",
            "encodingFormat": "text/csv",
            "name": "content-type.csv"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/content-type.json",
            "encodingFormat": "application/json",
            "name": "content-type.json"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/content-type.md",
            "encodingFormat": "text/markdown",
            "name": "content-type.md"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/content-type.pdf",
            "encodingFormat": "application/pdf",
            "name": "content-type.pdf"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/content-type.zip",
            "encodingFormat": "application/zip",
            "name": "content-type.zip"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/content-type/skills.zip",
            "encodingFormat": "application/zip",
            "name": "content-type-skills.zip"
        }
    ],
    "markdown": "1. [Home](<https://delaparra-services.nl/>) \n1. [Knowledge hub](<https://delaparra-services.nl/knowledge-hub>) \n1. [Content-Type](<https://delaparra-services.nl/knowledge-hub/content-type>)\n\n  \n\nCategory: HTTP headers \n\n# Content-Type\n\n  Explained by [Reinier de la Parra](<https://delaparra-services.nl/about>)  Updated November 25, 2026    \n\n## What is Content-Type?\n\n \n\nContent-Type: The media type of the request body. Required when sending a body. ` Content-Type ` tells the receiver what kind of data is in the body and how it is encoded. ` text/html; charset=utf-8 ` for web pages, ` application/json ` for API data, ` multipart/form-data ` for file uploads. The server uses it on requests to decide how to read the body. Send JSON without ` Content-Type: application/json ` and many frameworks will not parse it, so your code sees empty input.\n\n \n\nDefinition source [Coders Lingo](<https://coderslingo.com/resources/open-dataset/>), [CC BY 4.0](<https://creativecommons.org/licenses/by/4.0/>)\n\n \n\n## Frequently asked questions about Content-Type\n\n  \n\n### What should you keep in mind with Content-Type?\n\n \n\nOn responses, browsers rely on it to decide what to do with the data. Always set the correct type and character set. Add ` X-Content-Type-Options: nosniff ` so browsers do not guess, because guessing can turn an uploaded text file into executable script. Returning JSON errors with an HTML content type, or the other way round, is a common source of confusing client bugs.\n\n    \n\n### What does an example of Content-Type look like?\n\n \n\n```\nContent-Type: application/json; charset=utf-8\n```\n\n \n\n## At a glance\n\n   CategoryHTTP headers Explained by[Reinier de la Parra](<https://delaparra-services.nl/about>) UpdatedNovember 25, 2026\n\n \n\n## More HTTP headers terms\n\n \n\n- [Cache-Control](<https://delaparra-services.nl/knowledge-hub/cache-control>) \n- [Content-Length](<https://delaparra-services.nl/knowledge-hub/content-length>) \n- [Content-Security-Policy](<https://delaparra-services.nl/knowledge-hub/content-security-policy>) \n- [Cookie](<https://delaparra-services.nl/knowledge-hub/cookie>) \n- [ETag](<https://delaparra-services.nl/knowledge-hub/etag>) \n- [Expires](<https://delaparra-services.nl/knowledge-hub/expires>)\n\n \n\n[All terms starting with C](<https://delaparra-services.nl/knowledge-hub#letter-c>)\n\n \n\n## Skills\n\n \n\n- ### HTTP headers review\n\n \n\nUse when reviewing or setting HTTP response headers for a web app or API - security headers (Content-Security-Policy, Strict-Transport-Security, X-Frame-Options, X-Content-Type-Options, Referrer-Policy, Permissions-Policy), CORS headers, caching headers (Cache-Control, ETag, Last-Modified, Vary) and cookies (Set-Cookie flags). Also use when a security scan reports missing headers.\n\n [View skill](<https://delaparra-services.nl/skills/http-headers-review>) [Download zip](<https://delaparra-services.nl/skills/http-headers-review/download>) \n- ### Chrome DevTools Agent\n\n \n\n'Expert-level browser automation, debugging, and performance analysis using Chrome DevTools MCP. Use for interacting with web pages, capturing screenshots, analyzing network traffic, and profiling performance.'\n\n [View skill](<https://delaparra-services.nl/skills/chrome-devtools>) [Download zip](<https://delaparra-services.nl/skills/chrome-devtools/download>) \n- ### Laravel OWASP Security\n\n \n\nOWASP Top 10 security audit and secure coding guidelines for Laravel + React/Inertia.js applications. Use when auditing for vulnerabilities (\"run OWASP audit\", \"security review\", \"check my app security\") or writing secure Laravel code involving auth, payments, file uploads, or API design. Triggers on security-related tasks, payment handling, authentication, or any request to audit a Laravel codeba\n\n [View skill](<https://delaparra-services.nl/skills/laravel-owasp-security>) [Download zip](<https://delaparra-services.nl/skills/laravel-owasp-security/download>)\n\n [Download all skills (zip)](<https://delaparra-services.nl/knowledge-hub/content-type/skills.zip>)\n\n \n\n## Manuals\n\n \n\n- [HTTP headers: security, caching and CORS](<https://delaparra-services.nl/manuals/http-headers-beveiliging-caching-en-cors>) \n- [Reading HTTP status codes and debugging API errors](<https://delaparra-services.nl/manuals/http-statuscodes-en-api-fouten>)\n\n \n\n## Related services\n\n \n\n- [Web design and development](<https://delaparra-services.nl/services#service-01>)\n\nAfter our first meeting, we'll develop a custom solution for a fast, scalable application. \n- [AI code review](<https://delaparra-services.nl/services#service-05>)\n\nWhen you push your new change, I will review your code, help your agent avoid the same mistake again, and get your app ready for deployment.\n\n \n\n## Need any help?\n\n \n\nStuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.\n\n  [Get in touch](<https://delaparra-services.nl/availability>)\n\n[HTML version](https://delaparra-services.nl/knowledge-hub/content-type)\n",
    "structured_data": {
        "@context": "https://schema.org",
        "@graph": [
            {
                "@type": "Organization",
                "@id": "https://delaparra-services.nl/#practice",
                "logo": "https://delaparra-services.nl/logo.png",
                "name": "DeLaParra Services",
                "legalName": "DeLaParra Services",
                "url": "https://delaparra-services.nl/",
                "description": "Bespoke software, web applications and mobile apps, developed in Laravel by a single developer in Groningen. Fixed price agreed in advance, full source code provided upon delivery.",
                "email": "info@delaparra-services.nl",
                "address": {
                    "@type": "PostalAddress",
                    "addressLocality": "Groningen",
                    "addressRegion": "Groningen",
                    "addressCountry": "NL"
                },
                "areaServed": "Groningen, the Netherlands",
                "knowsLanguage": [
                    "en",
                    "nl"
                ],
                "knowsAbout": [
                    "Web design and development",
                    "App development",
                    "Custom software and web applications",
                    "OpenSpec",
                    "AI code review",
                    "Your own coding agent"
                ],
                "founder": {
                    "@id": "https://delaparra-services.nl/#person"
                }
            },
            {
                "@type": "FAQPage",
                "@id": "https://delaparra-services.nl/knowledge-hub/content-type#webpage",
                "url": "https://delaparra-services.nl/knowledge-hub/content-type",
                "name": "Content-Type: Knowledge hub | DeLaParra Services",
                "description": "The media type of the request body. Required when sending a body.",
                "isPartOf": {
                    "@id": "https://delaparra-services.nl/#website"
                },
                "about": {
                    "@type": "DefinedTerm",
                    "@id": "https://delaparra-services.nl/knowledge-hub/content-type#term",
                    "name": "Content-Type",
                    "description": "The media type of the request body. Required when sending a body.",
                    "termCode": "content-type",
                    "url": "https://delaparra-services.nl/knowledge-hub/content-type",
                    "inLanguage": "en",
                    "keywords": "HTTP headers",
                    "dateModified": "2026-11-25T17:46:25+00:00",
                    "inDefinedTermSet": {
                        "@id": "https://delaparra-services.nl/knowledge-hub#terms"
                    },
                    "isPartOf": {
                        "@id": "https://delaparra-services.nl/knowledge-hub#dataset"
                    },
                    "subjectOf": [
                        {
                            "@id": "https://delaparra-services.nl/knowledge-hub/content-type#webpage"
                        },
                        {
                            "@id": "https://delaparra-services.nl/knowledge-hub/content-type#dataset"
                        }
                    ]
                },
                "inLanguage": "en",
                "breadcrumb": {
                    "@id": "https://delaparra-services.nl/knowledge-hub/content-type#breadcrumb"
                },
                "mainEntity": [
                    {
                        "@type": "Question",
                        "name": "What is Content-Type?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "The media type of the request body. Required when sending a body. Content-Type tells the receiver what kind of data is in the body and how it is encoded. text/html; charset=utf-8 for web pages, application/json for API data, multipart/form-data for file uploads. The server uses it on requests to decide how to read the body. Send JSON without Content-Type: application/json and many frameworks will not parse it, so your code sees empty input."
                        }
                    },
                    {
                        "@type": "Question",
                        "name": "What should you keep in mind with Content-Type?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "On responses, browsers rely on it to decide what to do with the data. Always set the correct type and character set. Add X-Content-Type-Options: nosniff so browsers do not guess, because guessing can turn an uploaded text file into executable script. Returning JSON errors with an HTML content type, or the other way round, is a common source of confusing client bugs."
                        }
                    },
                    {
                        "@type": "Question",
                        "name": "What does an example of Content-Type look like?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "Content-Type: application/json; charset=utf-8"
                        }
                    }
                ],
                "author": {
                    "@id": "https://delaparra-services.nl/#person"
                },
                "mentions": [
                    {
                        "@id": "https://delaparra-services.nl/skills/http-headers-review#skill"
                    },
                    {
                        "@id": "https://delaparra-services.nl/skills/chrome-devtools#skill"
                    },
                    {
                        "@id": "https://delaparra-services.nl/skills/laravel-owasp-security#skill"
                    },
                    {
                        "@id": "https://delaparra-services.nl/manuals/http-headers-beveiliging-caching-en-cors#article"
                    },
                    {
                        "@id": "https://delaparra-services.nl/manuals/http-statuscodes-en-api-fouten#article"
                    }
                ]
            },
            {
                "@type": "BreadcrumbList",
                "@id": "https://delaparra-services.nl/knowledge-hub/content-type#breadcrumb",
                "itemListElement": [
                    {
                        "@type": "ListItem",
                        "position": 1,
                        "name": "Home",
                        "item": "https://delaparra-services.nl/"
                    },
                    {
                        "@type": "ListItem",
                        "position": 2,
                        "name": "Knowledge hub",
                        "item": "https://delaparra-services.nl/knowledge-hub"
                    },
                    {
                        "@type": "ListItem",
                        "position": 3,
                        "name": "Content-Type"
                    }
                ]
            },
            {
                "@type": "Person",
                "@id": "https://delaparra-services.nl/#person",
                "name": "Reinier de la Parra",
                "url": "https://delaparra-services.nl/about"
            },
            {
                "@type": "Dataset",
                "@id": "https://delaparra-services.nl/knowledge-hub/content-type#dataset",
                "name": "Content-Type",
                "description": "The media type of the request body. Required when sending a body.",
                "url": "https://delaparra-services.nl/knowledge-hub/content-type",
                "identifier": "https://delaparra-services.nl/knowledge-hub/content-type#dataset",
                "about": {
                    "@id": "https://delaparra-services.nl/knowledge-hub/content-type#term"
                },
                "creator": {
                    "@id": "https://delaparra-services.nl/#practice"
                },
                "publisher": {
                    "@id": "https://delaparra-services.nl/#practice"
                },
                "license": "https://creativecommons.org/licenses/by/4.0/",
                "creditText": "Coders Lingo (https://coderslingo.com/resources/open-dataset/), CC BY 4.0",
                "isAccessibleForFree": true,
                "inLanguage": "en",
                "keywords": "HTTP headers",
                "version": "2026-11-25",
                "dateModified": "2026-11-25T17:46:25+00:00",
                "isPartOf": {
                    "@type": "Dataset",
                    "@id": "https://delaparra-services.nl/knowledge-hub#dataset",
                    "name": "IT terms from A to Z",
                    "url": "https://delaparra-services.nl/knowledge-hub"
                },
                "includedInDataCatalog": {
                    "@type": "DataCatalog",
                    "@id": "https://delaparra-services.nl/knowledge-hub#catalog",
                    "name": "Knowledge hub data catalog",
                    "url": "https://delaparra-services.nl/knowledge-hub"
                },
                "distribution": [
                    {
                        "@type": "DataDownload",
                        "name": "content-type.csv",
                        "encodingFormat": "text/csv",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/content-type.csv",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:25+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "content-type.json",
                        "encodingFormat": "application/json",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/content-type.json",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:25+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "content-type.md",
                        "encodingFormat": "text/markdown",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/content-type.md",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:25+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "content-type.pdf",
                        "encodingFormat": "application/pdf",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/content-type.pdf",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:25+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "content-type.zip",
                        "encodingFormat": "application/zip",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/content-type.zip",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:25+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "content-type-skills.zip",
                        "encodingFormat": "application/zip",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/content-type/skills.zip",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:25+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    }
                ]
            }
        ]
    }
}