Re: Content-Type header required for POST?
| From: | Olaf van der Spek | Date: | Tue, 26 Oct 2004 06:52:06 +0000 |
| Subject: | Re: Content-Type header required for POST? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-200323@lists.php.net to get a copy of this message | ||
Chris Shiflett wrote:
--- Olaf van der Spek <OlafvdSpek@GMail.Com> wrote:The RFC says should, not is required to. Any HTTP/1.1 message containing an entity-body SHOULD include a Content-Type header field defining the media type of that body. If and only if the media type is not given by a Content-Type field, the recipient MAY attempt to guess the media type via inspection of its content and/or the name extension(s) of the URI used to identify the resource. If the media type remains unknown, the recipient SHOULD treat it as type "application/octet-stream".Since which version does PHP require the Content-Type header in POST requests?Content-Type is required for any request that has content. It's an HTTP
requirement and has very little to do with PHP. Can you explain what you're talking about? Chris ===== Chris Shiflett - http://shiflett.org/PHP Security - O'Reilly HTTP Developer's Handbook - Sams Coming December 2004 http://httphandbook.org/