Loading ...
Sorry, an error occurred while loading the content.

1213Re: [soaplite] setting User-Agent

Expand Messages
  • Paul Kulchenko
    Feb 7, 2002
    • 0 Attachment
      Hi, Duncan!

      --- Duncan Cameron <dcameron@...> wrote:
      > Something like this:
      >
      > my $s = SOAP::Lite
      > -> uri($uri)
      > -> proxy("$protocol//$server:$port$endpoint")
      > ;
      > $s->transport->agent('My agent');
      >
      > This sets the user agent directly in the LWP::UserAgent object,
      > whereas the trace is showing the HTTP::Request object.
      That's correct. This will also work:

      my $s = SOAP::Lite
      -> uri($uri)
      -> proxy("$protocol//$server:$port$endpoint", agent => 'My agent');

      Best wishes, Paul.


      __________________________________________________
      Do You Yahoo!?
      Send FREE Valentine eCards with Yahoo! Greetings!
      http://greetings.yahoo.com
    • Show all 3 messages in this topic