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


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; 
Content-Length: 466

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

   color: red;

   color: green;
Content-Disposition: form-data; name="usermedium"

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

Received on Thursday, 18 November 2004 08:45:45 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:00:53 UTC