RE: Question about the CSS/XHTML validator API - request via POST

In regards to sending css text in a HTTPWebRequest POST as multipart /form-data to http://jigsaw.w3.org/css-validator/validator => it seems like no matter what css text I send - I always get back "Congratulations! No Error Found." from the CSS validator.

 

So how come the validator doesn't respond back with errors?  If I submit the same css text in the input form (http://jigsaw.w3.org/css-validator/#directinput) - I get validation errors.

 

So how do you get the CSS validator to work properly when using HTTPWebRequest via POST as multipart/form-data ??

 

thanks,

jeff



 


From: homedad00@hotmail.com
To: www-validator-css@w3.org
Subject: Question about the CSS/XHTML validator API - request via POST
Date: Thu, 10 Jun 2010 10:32:12 -0700



I'm able to write C# code that sends css text in a HTTPWebRequest POST as multipart /form-data to http://jigsaw.w3.org/css-validator/validator and I'm able to get a response back that shows the validation results.
 
Now I'm attempting to do the same - validating an XHTML/HTML document with a HTTPWebRequest via POST as multipart/form-data to http://validator.w3.org/check  but I'm not sure what the POST format is supposed to be.  I've tried following the same convention in building up the text for the POST as I did in the CSS case - but all I get back is " Sorry! This document can not be checked "
 
Can someone point me any "other" documentation on how to submit a POST to the XHTML validator http://validator.w3.org/check ?   
 
According to the webpage http://validator.w3.org/docs/api.html#requestformat:
 
If you want to use W3c's public validation server, use the parameters below in conjunction with the following base URI:   http://validator.w3.org/check 
 




uploaded_file
The document to validate, POSTed as multipart/form-data
None, but either this parameter, or uri, or fragment must be given.
 


 
Or can you point me to the right contact so I can get this working?   Is the XHTML validator API service even work for POST multipart/form-data?
 
thanks,
Jeff



The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with Hotmail. Get busy. 		 	   		  
_________________________________________________________________
The New Busy is not the too busy. Combine all your e-mail accounts with Hotmail.
http://www.windowslive.com/campaign/thenewbusy?tile=multiaccount&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4

Received on Wednesday, 16 June 2010 15:47:33 UTC