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

Usinf the CSS-Valdidator

From: Andreas Frey <hilfesucher@gmx.de>
Date: Thu, 18 Nov 2004 09:45:10 +0100
Message-ID: <419C6116.8040208@gmx.de>
To: www-validator-css@w3.org


Hello,

I try to use the submit file option to validate (X)HTML and CSS via a php 
script. Therefore I created a class which builds my HTTP-Request, open a socket, 
submit the request and read the answer. Works all fine with the xhtml 
validation, but i get an error when validating the CSS. The header I submit is 
the following. Could you please tell me why it does not work?
 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
POST /css-validator/validator HTTP/1.0
Host: jigsaw.w3.org
Content-Type: multipart/form-data; 
boundary=accessibility_webEdition419c580188ee31100765185
Content-Length: 466

--accessibility_webEdition419c580188ee31100765185
Content-Disposition: form-data; name="file"; filename="dummy.html"
Content-Type: text/css

.error{
   color: red;
}

.success{
   color: green;
}
--accessibility_webEdition419c580188ee31100765185
Content-Disposition: form-data; name="usermedium"

all
--accessibility_webEdition419c580188ee31100765185
Content-Disposition: form-data; name="submit"

check
--accessibility_webEdition419c580188ee31100765185
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Received on Thursday, 18 November 2004 08:45:45 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 27 June 2012 00:14:15 GMT