in reply to setting User-Agent, using SOAP::Lite

SOAP::Lite is a web (rimshot) of OO Classes. With the help of the perl debugger, you can begin to see what's going on. As it turns out, SOAP::Lite has a member called SOAP::Lite::Transport::HTTP::Client which is a subclass of LWP::UserAgent. What's more, you can *get* to the UserAgent object after you have defined the proxy thusly:
my $client = SOAP::Lite->uri("http://foo.com"); $client->proxy("http://foo.com/soap_server"); $client->transport->agent("Go_Pound_Sand/1.1");

Replies are listed 'Best First'.
Re: Re: setting User-Agent, using SOAP::Lite
by jjohn (Beadle) on Feb 07, 2002 at 01:53 UTC

    I noticed I wasn't logged in *after* I posted. Sigh. Anyway, that code should do the trick. As always, the perl debugger is great tool for getting to the bottom of Class hierarchies. For fun, try stepping through Tk. I learned some truly vile tricks from that beastie. :-)

    Cheers.

    --jjohn