# A regression test "framework" for Privoxy. For documentation see:
# perldoc privoxy-regression-test.pl
#
-# $Id: privoxy-regression-test.pl,v 1.74 2011/06/29 18:35:01 fabiankeil Exp $
+# $Id: privoxy-regression-test.pl,v 1.212 2011/07/17 13:49:52 fk Exp $
#
# Wish list:
#
my $expected_status_code = $test->{'expected-status-code'};
if (defined $test->{method}) {
- $curl_parameters .= quote('--request') . quote($test->{method}) . ' ';
+ $curl_parameters .= '--request ' . quote($test->{method}) . ' ';
}
if ($test->{type} == TRUSTED_CGI_REQUEST) {
- $curl_parameters .= quote('--referer ') . quote(PRIVOXY_CGI_URL) . ' ';
+ $curl_parameters .= '--referer ' . quote(PRIVOXY_CGI_URL) . ' ';
}
$curl_parameters .= quote($test->{'data'});
my $retries_left = get_cli_option('retries') + 1;
my $failure_reason;
- $curl_line .= ' --proxy ' . $proxy if (defined $proxy);
-
+ if (defined $proxy) {
+ $curl_line .= ' --proxy ' . quote($proxy);
+ }
# We want to see the HTTP status code
$curl_line .= " --include ";
# Let Privoxy emit two log messages less.