Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #24 from FROGGS/patch-3

use working remote test site, skip if test site isnt reachable
  • Loading branch information...
commit e7ba7b85527d0686da6a817e2b8ab868c3b5ad38 2 parents 71cf332 + 5d1d88f
@cosimo authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 t/custom-headers-and-content.t
View
6 t/custom-headers-and-content.t
@@ -3,12 +3,12 @@ use Test;
use LWP::Simple;
-my $host = 'http://www.software-path.com/was-cgi/json_rpc_server_test.cgi';
+my $host = 'http://froggs.de/cgi-bin/test/test.cgi';
my %headers = ( 'Content-Type' => 'application/json' );
my $content = '{"method":"echo","params":["Hello from Perl6"],"id":1}';
+my $html = LWP::Simple.post($host, %headers, $content);
-my $html = LWP::Simple.post($host, %headers, $content);
-
+skip("Unable to connect to test site '$host'", 1) unless $html;
ok(
$html.match('Hello from Perl6'),
'call to JSON-RPC service using headers and content params'
Please sign in to comment.
Something went wrong with that request. Please try again.