• Do
not register here on develop.twiki.org, login with your twiki.org account.
• Use
Item7848 for generic
doc work for TWiki-6.1.1. Use
Item7851 for doc work on
extensions that are not part of a release.
More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
• Does this site look broken?. Use the LitterTray web for test cases.
Item7871: No good way to enable cookies handling with LWP::UserAgent
Item Form Data
AppliesTo: |
Component: |
Priority: |
CurrentState: |
WaitingFor: |
TargetRelease |
ReleasedIn |
Engine |
|
Normal |
Waiting for Release |
|
minor |
|
Detail
You can specify the parameters of LWP::UserAgent->new() called in TWiki::Net with $TWiki::cfg{LWPUserAgent}{Params}. Each parameter value specified is copied to the parameters actually suppied to LWP::UserAgent->new(). This scheme cannot handle the cookie_jar parameter because the parameter's value is an HTTP::Cookies instance, which is supposed to be created for each LWP::UserAgent instance. It's possible to put "cookie_jar => HTTP::Cookies->new()" in {LWPUserAgent}{Params} but using the same HTTP::Cookies instance for multiple instances of LWP::UserAgent, which can happen easily, is questionable.
--
TWiki:Main/HideyoImazu
- 2019-11-19