W3C home > Mailing lists > Public > www-validator@w3.org > November 2004

Re: File Upload via php script

From: Ville Skyttä <ville.skytta@iki.fi>
Date: Fri, 05 Nov 2004 20:21:03 +0200
To: Andreas Frey <hilfesucher@gmx.de>
Cc: www-validator@w3.org
Message-Id: <1099678863.12511.22.camel@bobcat.mine.nu>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:15 GMT