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

Re: [soaplite] setting User-Agent

Expand Messages
  • Paul Kulchenko
    Hi, Duncan! ... That s correct. This will also work: my $s = SOAP::Lite - uri($uri) - proxy( $protocol//$server:$port$endpoint , agent = My agent ); Best
    Message 1 of 3 , 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
    Your message has been successfully submitted and would be delivered to recipients shortly.