On Thursday, March 14, 2002, at 10:59 , Thomas Huber wrote:

>
>
> How can the UA be set in Java?
>
>> Create a user-agent object thus:
>>
>> "$ua = LWP::RobotUA->new('Banjo/1.1','http://nowhere.int/banjo.html
>> [EMAIL PROTECTED]')

There is no explicit setUserAgent call. However, you can set the header 
itself. I forget the exact call, but it's something like 
urlConnection.setHeader("User-Agent", "Banjo/1.1"). If you want to set 
the From header you'll have to use this method too.

--
Mike


--
This message was sent by the Internet robots and spiders discussion list 
([EMAIL PROTECTED]).  For list server commands, send "help" in the body of a message 
to "[EMAIL PROTECTED]".

Reply via email to