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

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.