summaryrefslogtreecommitdiffhomepage
path: root/tests/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'tests/scripts')
-rwxr-xr-xtests/scripts/webclient.pl5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/scripts/webclient.pl b/tests/scripts/webclient.pl
index 25c0fb7..4dddb69 100755
--- a/tests/scripts/webclient.pl
+++ b/tests/scripts/webclient.pl
@@ -122,11 +122,16 @@ foreach my $document (@ARGV) {
print $remote $request;
+ $_ = <$remote>;
+ print; # /* HTTP/1.0 400 Bad Request */
+ my($errn) = ($_ =~ /HTTP\/\d\.\d (\d{3})/);
+
while (<$remote>) {
print;
}
close $remote;
+ exit($errn - 399) if($errn > 399);
}
exit(0);