]>
iEval git - gruntmaster-daemon.git/blob - lib/Gruntmaster/SendResults.pm
1 package Gruntmaster
::SendResults
;
6 use parent qw
/Exporter/;
9 use JSON qw
/encode_json decode_json/;
12 our $VERSION = '5999.000_005';
13 our @EXPORT_OK = qw
/send_results_request/;
15 sub send_results_request
{
16 my ($job_id, $result, $result_text) = @_;
18 my $url = $ENV{REMOTE_ADDRESS
};
20 'Content-Type' => 'application/json'
25 result_text
=> $result_text
28 my $encoded_data = encode_json
($data);
29 my $request = HTTP
::Request
->new(POST
=> $url, $header, $encoded_data);
30 my $ua = LWP
::UserAgent
->new();
31 my $response = $ua->request($request);
This page took 0.048258 seconds and 5 git commands to generate.