Re: File Upload via php script

On Fri, 2004-11-05 at 14:36, Andreas Frey wrote:
> >>POST /check/ HTTP/1.0
> >>Host : validator.w3.org
> 
> Thanks for your fast answer. When i use HTTP 1.1 as seen below, it again works 
> on my local installation, but generates another error. But i think the header 
> should be alright, I checked RFC2616 14.23 and all looks good for me.
> <<<<<<<<<<<<<<<<<<<<<<<
>    POST /check/ HTTP/1.1

The canonical URL is "/check", not "/check/".  That's probably why you
got the 302 response earlier.

>    User-Agent : whatever
>    Connection : close
>    Content-Type : multipart/form-data;
>    boundary=--accessibility_4cbb45f0a86911cc4f2203f70f1c8852
>    Host : validator.w3.org
>    Keep-Alive : 2000
>    ...
>  >>>>>>>>>>>>>>>>>>>>>>>
> I get the following answer
> <<<<<<<<<<<<<<<<<<<<<<<
>    HTTP/1.1 400 Bad Request

As already pointed out by others, at least the extra space between a
header name and the colon is wrong.  Ie. use:

  User-Agent: whatever

...not:

  User-Agent : whatever

...and apply that to all headers you send.

Received on Friday, 5 November 2004 18:21:06 UTC