Help for this page

Select Code to Download


  1. or download this
    use JIRA::REST;
    use JSON;
    ...
        });
    
    print(parse_json ($request));
    
  2. or download this
    use REST::Client;
    my $client = REST::Client->new();
    $client->setHost('https://jira.hostname:PORT/jira/rest');
        $client->request('post', '/auth/1/session', ['{ "username" : "myus
    +er", "password" : "mypass" }', undef]);
        print ($client->responseContent());
    
  3. or download this
    use LWP;
    use LWP::UserAgent;
    ...
    else {
        die $response->status_line;
    };
    
  4. or download this
    500 Can't connect to jira.hostname:PORT
    
    Bad file descriptor at C:/myperl/perl/vendor/lib/LWP/Protocol/http.pm 
    +line 47.
     at jiratest.pl line 28.
    
  5. or download this
    sub _new_socket
    {
    ...
    
        $sock;
    }