1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

test #1405: support HTTP disabled builds

This commit is contained in:
Yang Tse 2012-03-26 23:52:15 +02:00
parent 3fdb7808ef
commit 459435dca1

View File

@ -83,8 +83,6 @@ int main(int argc, char *argv[])
hnd = curl_easy_init(); hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_URL, "ftp://%HOSTIP:%FTPPORT/1405"); curl_easy_setopt(hnd, CURLOPT_URL, "ftp://%HOSTIP:%FTPPORT/1405");
curl_easy_setopt(hnd, CURLOPT_HEADER, 1L); 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_QUOTE, slist1);
curl_easy_setopt(hnd, CURLOPT_POSTQUOTE, slist2); curl_easy_setopt(hnd, CURLOPT_POSTQUOTE, slist2);
curl_easy_setopt(hnd, CURLOPT_PREQUOTE, slist3); curl_easy_setopt(hnd, CURLOPT_PREQUOTE, slist3);
@ -124,8 +122,10 @@ int main(int argc, char *argv[])
/**** End of sample code ****/ /**** End of sample code ****/
</file> </file>
<stripfile> <stripfile>
# curl's default user-agent varies with version, libraries etc. # CURLOPT_USERAGENT and CURLOPT_MAXREDIRS requires HTTP protocol
s/(USERAGENT, \")[^\"]+/${1}stripped/ # support, IOW depends on configuration - just ignore these.
$_ = '' if /CURLOPT_USERAGENT/
$_ = '' if /CURLOPT_MAXREDIRS/
# CURLOPT_SSL_VERIFYPEER and SSH_KNOWNHOSTS vary with configurations - just # CURLOPT_SSL_VERIFYPEER and SSH_KNOWNHOSTS vary with configurations - just
# ignore them # ignore them
$_ = '' if /CURLOPT_SSL_VERIFYPEER/ $_ = '' if /CURLOPT_SSL_VERIFYPEER/