gnustavo / JIRA-REST

Thin wrapper around Jira's REST API
https://metacpan.org/release/JIRA-REST/
17 stars 17 forks source link

Documentation update request for dealing with proxies #3

Closed padraiglennon closed 8 years ago

padraiglennon commented 8 years ago

Hi

Would it be possible to update the documentation to include an example of how to properly work with proxies? I have been trying a number of approaches all of which have been failing.

What is the correct syntax for passing proxy information to the new() function?

gnustavo commented 8 years ago

Good idea!

However, the code to let JIRA::REST use proxies was contributed by Andrew OBrien in 4d828831 but I never used proxies myself.

Supposing you invoked new like this:

my $jira = JIRA::REST->new(JIRAURL, USER, PASS, {proxy => PROXYURL});

What is does is to get an LWP::UserAgent object and invoke its proxy method like this:

$ua->proxy(['http','https'], PROXYURL);

You can read about that method here.

Does this help?

If not, show me the code you're using the error you're getting, please.

padraiglennon commented 8 years ago

That works. Thank you for that