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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to