I am new to use JIRA and REST API.Please tell me how to connect to HTTPS jira server using JIRA::Client::Automated module. I am trying to connect to jira server using below code.
use strict; use warnings use JIRA::Client::Automated; my $user = 'foo'; my $pass = 'bar'; my $url = 'https://xxx.yyy.com/jira-stage/'; my $jira = JIRA::Client::Automated->new($url, $user, $pass); my $ua = $jira->ua(); $ua->proxy('http', 'http://proxy.com:8000'); $search_results = $jira->search_issues(project in (sample), 0, 1000); my $count = $search_results->{'total'}; print "$count";
But using the above code always gives me an 500 error saying Unable to connect. Since I am trying to connect from my Local Machine, the request is not going through Local system proxy. Please let me know how to connect through Proxy
I am able to access the same rest url using the webbrowser of my local machine. Please suggest if I am doing anything wrong.
In reply to How can I connect to an HTTPS server using the Perl JIRA::Client::Automated module through Proxy? by hanish_cbit
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |