commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Becke <be...@u.washington.edu>
Subject Re: [HTTPClient] HeaderElement
Date Sun, 05 Oct 2003 21:59:15 GMT
Hi Sal,

You can set request headers using one of the setRequestHeader() methods 
on each of the HttpMethods.  For example:

GetMethod get = new GetMethod("http://jakarta.apache.org/");
get.setRequestHeader("User-Agent", "My User Agent");

Mike


On Saturday, October 4, 2003, at 01:19 PM, qwerty wrote:

>
> hi,
>
>  I need an example with HeaderElement class,
>
>  I would send an header to web server:
> ex:
>    User-Agent: xyz
>    Range: bytes=23232-
>
> Excuse me for my poor english
>
>
>  sal
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message