You are viewing a plain text version of this content. The canonical link for it is here.
Posted to httpclient-users@hc.apache.org by Erik5048 <et...@hotmail.com> on 2010/01/08 17:53:48 UTC
css validation from Java
I want to online validate CSS from a java program of mine.
So with Firefox, I send a piece of CSS text like this:
http://jigsaw.w3.org/css-validator/validator?text=h2{margin-left:34px;}
(= Firefox URL) and get an HTML page back, sayinf all is OK.
How would I do that from a Java program with HttpClient ? How can I find
out, how a request is built up , and a response is received ?
All I get now is an HTTP error 500....
what would be the HttpClient definition and what the Request ?
--
View this message in context: http://old.nabble.com/css-validation-from-Java-tp27078997p27078997.html
Sent from the HttpClient-User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org
Re: re: css validation from Java
Posted by Erik5048 <et...@hotmail.com>.
absolutely G R E A T help
Tony Poppleton-2 wrote:
>
> Hi Erik,
>
> You can monitor the web traffic in Firefox using an addon, for example
> FireBugs or LiveHeaders (http://livehttpheaders.mozdev.org/). There is
> possibly an even better addon that I don't know about... You can use
> these addons to find out what to put in your requests.
>
> Tony
>
>> Message du 08/01/10 17:54
>> De : "Erik5048"
>> A : httpclient-users@hc.apache.org
>> Copie à :
>> Objet : css validation from Java
>>
>>
>>
>> I want to online validate CSS from a java program of mine.
>>
>> So with Firefox, I send a piece of CSS text like this:
>>
>> http://jigsaw.w3.org/css-validator/validator?text=h2{margin-left:34px;}
>>
>> (= Firefox URL) and get an HTML page back, sayinf all is OK.
>>
>> How would I do that from a Java program with HttpClient ? How can I find
>> out, how a request is built up , and a response is received ?
>> All I get now is an HTTP error 500....
>> what would be the HttpClient definition and what the Request ?
>> --
>> View this message in context:
>> http://old.nabble.com/css-validation-from-Java-tp27078997p27078997.html
>> Sent from the HttpClient-User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
>> For additional commands, e-mail: httpclient-users-help@hc.apache.org
>>
>> ---------------------------------------------------------------------------------------
>> Orange vous informe que cet e-mail a ete controle par l'anti-virus mail.
>> Aucun virus connu a ce jour par nos services n'a ete detecte.
>>
>>
>>
>
>
--
View this message in context: http://old.nabble.com/css-validation-from-Java-tp27078997p27081844.html
Sent from the HttpClient-User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org
re: css validation from Java
Posted by Tony Poppleton <to...@wanadoo.fr>.
Hi Erik,
You can monitor the web traffic in Firefox using an addon, for example FireBugs or LiveHeaders (http://livehttpheaders.mozdev.org/). There is possibly an even better addon that I don't know about... You can use these addons to find out what to put in your requests.
Tony
> Message du 08/01/10 17:54
> De : "Erik5048"
> A : httpclient-users@hc.apache.org
> Copie à :
> Objet : css validation from Java
>
>
>
> I want to online validate CSS from a java program of mine.
>
> So with Firefox, I send a piece of CSS text like this:
>
> http://jigsaw.w3.org/css-validator/validator?text=h2{margin-left:34px;}
>
> (= Firefox URL) and get an HTML page back, sayinf all is OK.
>
> How would I do that from a Java program with HttpClient ? How can I find
> out, how a request is built up , and a response is received ?
> All I get now is an HTTP error 500....
> what would be the HttpClient definition and what the Request ?
> --
> View this message in context: http://old.nabble.com/css-validation-from-Java-tp27078997p27078997.html
> Sent from the HttpClient-User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
> For additional commands, e-mail: httpclient-users-help@hc.apache.org
>
> ---------------------------------------------------------------------------------------
> Orange vous informe que cet e-mail a ete controle par l'anti-virus mail.
> Aucun virus connu a ce jour par nos services n'a ete detecte.
>
>
>