create new tag
, view all tags

Feature Proposal: LWP::UserAgent finer control


Behind a firewall, LWP::UserAgent may need extra parameters and settings.

Description and Documentation

Introduce the following configuration parameters

  • $TWiki::cfg{PROXY}{Protocols} (an array reference)
    If provided, it's passed as the first argument of the proxy method. There are cases where proxy handling of HTTPS requests needs to be done outside LWP. In that case, proxy(['http'], $proxyURL) instead of proxy(['http', 'https'], $proxyURL) needs to be called.
  • $TWiki::cfg{LWPUserAgent}{Params} (a hash reference)
    If provided, it becomes the base of the parameters handed to LWP::UserAgent::new(). Parameter values provided may be overridden by httpHandler and others.


$TWiki::cfg{PROXY}{Protocols} = [qw(http)];
$TWiki::cfg{LWPUserAgent}{Params} = {ssl_opts => { verify_hostname => 0 }};



-- Contributors: Hideyo Imazu - 2013-02-25


Looks good.

-- Peter Thoeny - 2013-02-25

Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2013-09-19 - PeterThoeny
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.