From: Daniel Stenberg Date: Tue, 19 Apr 2005 08:10:04 +0000 (+0000) Subject: added CURLOPT_PORT test when using proxy X-Git-Tag: curl-7_14_0~147 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=53a8e5655b02585e3528c4c619315c80adccd4c0;p=curl added CURLOPT_PORT test when using proxy --- diff --git a/tests/data/test523 b/tests/data/test523 new file mode 100644 index 000000000..07c3b16a3 --- /dev/null +++ b/tests/data/test523 @@ -0,0 +1,61 @@ + + +HTTP +HTTP GET +CURLOPT_PORT +CURLOPT_PROXY + + + +# +# Server-side + + +HTTP/1.1 200 OK swsclose +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT +ETag: "21025-dc7-39462498" +Accept-Ranges: bytes +Content-Length: 6 + +hello + + + +# +# Client-side + + +http + + +lib523 + + +HTTP GET with proxy and CURLOPT_PORT + +# first URL then proxy + +http://www.haxx.se:999/523 http://%HOSTIP:%HTTPPORT + + + +# +# Verify data after the test has been "shot" + + +^User-Agent:.* + + +GET http://www.haxx.se:19999/523 HTTP/1.1 +Authorization: Basic eHh4Onl5eQ== +Host: www.haxx.se:19999 +Pragma: no-cache +Accept: */* + + + +hello + +