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

File Upload via php script

From: Andreas Frey <hilfesucher@gmx.de>
Date: Fri, 05 Nov 2004 12:45:10 +0100
Message-ID: <418B67C6.3040502@gmx.de>
To: www-validator@w3.org


I wonder if it is possible to upload a html-document automatically (using php) 
to the validation service. I tried to connect through a socket and send a header 
according to what a html form would do. Testing this locally all works fine. I 
can upload a file and read the response given by my local WebServer. When 
sending the same to the validation service I always got the server answer: 
"HTTP/1.1 302 Moved"

Is it possible and allowed to implement the file-upload from an external server?

I use the 'validator.w3.org' as host
and '/check/' as path.

Here is a short excerpt from the headers i sent:
POST /check/ HTTP/1.0
User-Agent : somewhat
Connection : close
Content-Type : multipart/form-data; 
Host : validator.w3.org
Keep-Alive : 2000
Content-Length : 319

Thanks for your help.

Greetings from Germany,
Received on Friday, 5 November 2004 11:51:05 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:43 UTC