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

1211Re: [soaplite] setting User-Agent

Expand Messages
  • Duncan Cameron
    Feb 7, 2002
    • 0 Attachment
      On 2002-02-07 nitty111 wrote:
      >How do I set the User-Agent in the header? With "+trace" for
      >debugging I can see that Content-Length and Content-Type were set but
      >not the User-Agent.
      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.

      Duncan Cameron
    • Show all 3 messages in this topic