aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2012-03-26 23:52:15 +0200
committerYang Tse <yangsita@gmail.com>2012-03-26 23:54:27 +0200
commit459435dca17f65955d9d98885f604b1fe495289a (patch)
tree5c59b96f0ba1bc2c08606325f06069b86477b92b /tests
parent3fdb7808ef10dca56be12b91379be6e483e1b189 (diff)
test #1405: support HTTP disabled builds
Diffstat (limited to 'tests')
-rw-r--r--tests/data/test14058
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/data/test1405 b/tests/data/test1405
index f0daa0fa4..187f84983 100644
--- a/tests/data/test1405
+++ b/tests/data/test1405
@@ -83,8 +83,6 @@ int main(int argc, char *argv[])
hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_URL, "ftp://%HOSTIP:%FTPPORT/1405");
curl_easy_setopt(hnd, CURLOPT_HEADER, 1L);
- curl_easy_setopt(hnd, CURLOPT_USERAGENT, "stripped");
- curl_easy_setopt(hnd, CURLOPT_MAXREDIRS, 50L);
curl_easy_setopt(hnd, CURLOPT_QUOTE, slist1);
curl_easy_setopt(hnd, CURLOPT_POSTQUOTE, slist2);
curl_easy_setopt(hnd, CURLOPT_PREQUOTE, slist3);
@@ -124,8 +122,10 @@ int main(int argc, char *argv[])
/**** End of sample code ****/
</file>
<stripfile>
-# curl's default user-agent varies with version, libraries etc.
-s/(USERAGENT, \")[^\"]+/${1}stripped/
+# CURLOPT_USERAGENT and CURLOPT_MAXREDIRS requires HTTP protocol
+# support, IOW depends on configuration - just ignore these.
+$_ = '' if /CURLOPT_USERAGENT/
+$_ = '' if /CURLOPT_MAXREDIRS/
# CURLOPT_SSL_VERIFYPEER and SSH_KNOWNHOSTS vary with configurations - just
# ignore them
$_ = '' if /CURLOPT_SSL_VERIFYPEER/