simple HTTP GET
</name>
<command>
-http://%HOSTIP:%HOSTPORT/1
+http://%HOSTIP:%HTTPPORT/1
</command>
</client>
</strip>
<protocol>
GET /1 HTTP/1.1\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
simple HTTP PUT from file
</name>
<command>
-http://%HOSTIP:%HOSTPORT/we/want/10 -T log/test10.txt
+http://%HOSTIP:%HTTPPORT/we/want/10 -T log/test10.txt
</command>
<file name="log/test10.txt">
Weird
</strip>
<protocol>
PUT /we/want/10 HTTP/1.1\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
Content-Length: 78\r
simple HTTP Location: following
</name>
<command>
-http://%HOSTIP:%HOSTPORT/want/11 -L
+http://%HOSTIP:%HTTPPORT/want/11 -L
</command>
</test>
</strip>
<protocol>
GET /want/11 HTTP/1.1\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
GET /want/data/110002.txt?coolsite=yes HTTP/1.1\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
HTTP range support
</name>
<command>
-http://%HOSTIP:%HOSTPORT/want/12 -r 100-200
+http://%HOSTIP:%HTTPPORT/want/12 -r 100-200
</command>
</test>
<protocol>
GET /want/12 HTTP/1.1\r
Range: bytes=100-200\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
HTTP custom request 'DELETE'
</name>
<command>
-http://%HOSTIP:%HOSTPORT/want/13 -X DELETE
+http://%HOSTIP:%HTTPPORT/want/13 -X DELETE
</command>
</test>
</strip>
<protocol>
DELETE /want/13 HTTP/1.1\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
HTTP HEAD with Connection: close
</name>
<command>
-http://%HOSTIP:%HOSTPORT/want/14 -i --head
+http://%HOSTIP:%HTTPPORT/want/14 -i --head
</command>
</test>
<protocol>
HEAD /want/14 HTTP/1.1\r
User-Agent: curl/7.4.2-pre4 (sparc-sun-solaris2.7) libcurl 7.4.2-pre4\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
--write-out test
</name>
<command>
-http://%HOSTIP:%HOSTPORT/want/15 --write-out '%{url_effective} %{http_code} %{size_download}\n'
+http://%HOSTIP:%HTTPPORT/want/15 --write-out '%{url_effective} %{http_code} %{size_download}\n'
</command>
</test>
Content-Length: 26\r
\r
Repeated nonsense-headers
-http://127.0.0.1:8999/want/15 200 26
+http://127.0.0.1:%HTTPPORT/want/15 200 26
</stdout>
<strip>
^User-Agent:.*
</strip>
<protocol>
GET /want/15 HTTP/1.1\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
HTTP with NTLM authorization and --fail
</name>
<command>
-http://%HOSTIP:%HOSTPORT/150 -u testuser:testpass --ntlm --fail
+http://%HOSTIP:%HTTPPORT/150 -u testuser:testpass --ntlm --fail
</command>
</test>
GET /150 HTTP/1.1\r
Authorization: NTLM TlRMTVNTUAABAAAAAgIAAAAAAAAgAAAAAAAAACAAAAA=\r
User-Agent: curl/7.10.6-pre1 (i686-pc-linux-gnu) libcurl/7.10.6-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
GET /150 HTTP/1.1\r
Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEgAAAAYABgAYAAAAAAAAABAAAAACAAIAEAAAAAAAAAASAAAAAAAAAB4AAAAAYIAAHRlc3R1c2VyWmRDApEJkUyGOPS3DjvASModEeW/N/FBqYVyF4y6/y/7F6qmEQ7lXjXFF3tH1145\r
User-Agent: curl/7.10.6-pre1 (i686-pc-linux-gnu) libcurl/7.10.6-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
HTTP GET with an error code that might trick authentication
</name>
<command>
-http://%HOSTIP:%HOSTPORT/151
+http://%HOSTIP:%HTTPPORT/151
</command>
</test>
<protocol>
GET /151 HTTP/1.1\r
User-Agent: curl/7.8.1-pre3 (sparc-sun-solaris2.7) libcurl 7.8.1-pre3 (OpenSSL 0.9.6a) (krb4 enabled)\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
HTTP GET with an error code that might trick authentication and --fail
</name>
<command>
-http://%HOSTIP:%HOSTPORT/152 --fail
+http://%HOSTIP:%HTTPPORT/152 --fail
</command>
</test>
<protocol>
GET /152 HTTP/1.1\r
User-Agent: curl/7.8.1-pre3 (sparc-sun-solaris2.7) libcurl 7.8.1-pre3 (OpenSSL 0.9.6a) (krb4 enabled)\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
HTTP with Digest authorization with stale=true
</name>
<command>
-http://%HOSTIP:%HOSTPORT/1530001 -u testuser:testpass --digest http://%HOSTIP:%HOSTPORT/1530002
+http://%HOSTIP:%HTTPPORT/1530001 -u testuser:testpass --digest http://%HOSTIP:%HTTPPORT/1530002
</command>
</test>
</strip>
<protocol>
GET /1530001 HTTP/1.1\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
GET /1530001 HTTP/1.1\r
Authorization: Digest username="testuser", realm="testrealm", nonce="1053604145", uri="/1530001", response="f4f83139396995bac665f24a1f1055c7"\r
User-Agent: curl/7.10.5 (i686-pc-linux-gnu) libcurl/7.10.5 OpenSSL/0.9.7a ipv6 zlib/1.1.3\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
GET /1530002 HTTP/1.1\r
Authorization: Digest username="testuser", realm="testrealm", nonce="1053604145", uri="/1530002", response="f84511b014fdd0ba6494f42871079c32"\r
User-Agent: curl/7.11.0-CVS (i686-pc-linux-gnu) libcurl/7.11.0-CVS OpenSSL/0.9.6b ipv6 zlib/1.1.4 GSS\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
GET /1530002 HTTP/1.1\r
Authorization: Digest username="testuser", realm="testrealm", nonce="999999", uri="/1530002", cnonce="MTA4MzIy", nc="00000001", qop="auth", response="25291c357671604a16c0242f56721c07", algorithm="MD5"\r
User-Agent: curl/7.11.0-CVS (i686-pc-linux-gnu) libcurl/7.11.0-CVS OpenSSL/0.9.6b ipv6 zlib/1.1.4 GSS\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
HTTP PUT with --anyauth authorization (picking Digest)
</name>
<command>
-http://%HOSTIP:%HOSTPORT/154 -T log/put154 -u testuser:testpass --anyauth
+http://%HOSTIP:%HTTPPORT/154 -T log/put154 -u testuser:testpass --anyauth
</command>
<file name="log/put154">
This is data we upload with PUT
</strip>
<protocol>
HEAD /154 HTTP/1.1\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
PUT /154 HTTP/1.1\r
Authorization: Digest username="testuser", realm="gimme all yer s3cr3ts", nonce="11223344", uri="/154", response="b71551e12d1c456e47d8388ecb2edeca"\r
User-Agent: curl/7.10.5 (i686-pc-linux-gnu) libcurl/7.10.5 OpenSSL/0.9.7a ipv6 zlib/1.1.3\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
Content-Length: 85\r
HTTP PUT with --anyauth authorization (picking NTLM)
</name>
<command>
-http://%HOSTIP:%HOSTPORT/155 -T log/put155 -u testuser:testpass --anyauth
+http://%HOSTIP:%HTTPPORT/155 -T log/put155 -u testuser:testpass --anyauth
</command>
<file name="log/put155">
This is data we upload with PUT
</strip>
<protocol>
HEAD /155 HTTP/1.1\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
HEAD /155 HTTP/1.1\r
Authorization: NTLM TlRMTVNTUAABAAAAAgIAAAAAAAAgAAAAAAAAACAAAAA=\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
PUT /155 HTTP/1.1\r
Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEgAAAAYABgAYAAAAAAAAABAAAAACAAIAEAAAAAAAAAASAAAAAAAAAB4AAAAAYIAAHRlc3R1c2VyWmRDApEJkUyGOPS3DjvASModEeW/N/FBqYVyF4y6/y/7F6qmEQ7lXjXFF3tH1145\r
User-Agent: curl/7.10.5 (i686-pc-linux-gnu) libcurl/7.10.5 OpenSSL/0.9.7a ipv6 zlib/1.1.3\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
Content-Length: 85\r
HTTP PUT with --anyauth (when the server requires none)
</name>
<command>
-http://%HOSTIP:%HOSTPORT/156 -T log/put156 -u testuser:testpass --anyauth
+http://%HOSTIP:%HTTPPORT/156 -T log/put156 -u testuser:testpass --anyauth
</command>
<file name="log/put156">
This is data we upload with PUT
</strip>
<protocol>
HEAD /156 HTTP/1.1\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
PUT /156 HTTP/1.1\r
User-Agent: curl/7.10.5 (i686-pc-linux-gnu) libcurl/7.10.5 OpenSSL/0.9.7a ipv6 zlib/1.1.3\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
Content-Length: 85\r
HTTP GET with --anyauth (when the server requires none)
</name>
<command>
-http://%HOSTIP:%HOSTPORT/157 -u testuser:testpass --anyauth
+http://%HOSTIP:%HTTPPORT/157 -u testuser:testpass --anyauth
</command>
</client>
</strip>
<protocol>
GET /157 HTTP/1.1\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
HTTP multipart formpost with only a 100 reply
</name>
<command>
-http://%HOSTIP:%HOSTPORT/158 -F name=daniel
+http://%HOSTIP:%HTTPPORT/158 -F name=daniel
</command>
</client>
<protocol>
POST /158 HTTP/1.1\r
User-Agent: curl/7.11.2-CVS (i686-pc-linux-gnu) libcurl/7.11.2-CVS OpenSSL/0.9.6b ipv6 zlib/1.1.4 GSS\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
Content-Length: 145\r
HTTP with NTLM authorization when talking HTTP/1.0
</name>
<command>
-http://%HOSTIP:%HOSTPORT/159 -u testuser:testpass --ntlm -0
+http://%HOSTIP:%HTTPPORT/159 -u testuser:testpass --ntlm -0
</command>
</test>
GET /159 HTTP/1.0\r
Authorization: NTLM TlRMTVNTUAABAAAAAgIAAAAAAAAgAAAAAAAAACAAAAA=\r
User-Agent: curl/7.10.6-pre1 (i686-pc-linux-gnu) libcurl/7.10.6-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
GET /159 HTTP/1.0\r
Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEgAAAAYABgAYAAAAAAAAABAAAAACAAIAEAAAAAAAAAASAAAAAAAAAB4AAAAAYIAAHRlc3R1c2VyWmRDApEJkUyGOPS3DjvASModEeW/N/FBqYVyF4y6/y/7F6qmEQ7lXjXFF3tH1145\r
User-Agent: curl/7.10.6-pre1 (i686-pc-linux-gnu) libcurl/7.10.6-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
HTTP with proxy athorization
</name>
<command>
- -U fake@user:§§§looooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong -x %HOSTIP:%HOSTPORT http://we.want.that.site.com/16
+ -U fake@user:§§§looooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong -x %HOSTIP:%HTTPPORT http://we.want.that.site.com/16
</command>
</test>
HTTP with delayed close, conn reuse, connection reset and retry
</name>
<command>
-http://%HOSTIP:%HOSTPORT/want/160 http://%HOSTIP:%HOSTPORT/wantmore/1600001
+http://%HOSTIP:%HTTPPORT/want/160 http://%HOSTIP:%HTTPPORT/wantmore/1600001
</command>
</test>
</strip>
<protocol>
GET /want/160 HTTP/1.1\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
GET /wantmore/1600001 HTTP/1.1\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
HTTP GET asking for --proxy-ntlm when some other authentication is required
</name>
<command>
-http://%HOSTIP:%HOSTPORT/162 --proxy http://%HOSTIP:%HOSTPORT --proxy-user foo:bar --proxy-ntlm --fail
+http://%HOSTIP:%HTTPPORT/162 --proxy http://%HOSTIP:%HTTPPORT --proxy-user foo:bar --proxy-ntlm --fail
</command>
</test>
^User-Agent: curl/.*
</strip>
<protocol>
-GET http://127.0.0.1:8999/162 HTTP/1.1\r
+GET http://127.0.0.1:%HTTPPORT/162 HTTP/1.1\r
Proxy-Authorization: NTLM TlRMTVNTUAABAAAAAgIAAAAAAAAgAAAAAAAAACAAAAA=
User-Agent: curl/7.8.1-pre3 (sparc-sun-solaris2.7) libcurl 7.8.1-pre3 (OpenSSL 0.9.6a) (krb4 enabled)\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
HTTP multipart formpost with contents from a file
</name>
<command>
-http://%HOSTIP:%HOSTPORT/we/want/163 -F "name=<log/field163" -F tool=curl
+http://%HOSTIP:%HTTPPORT/we/want/163 -F "name=<log/field163" -F tool=curl
</command>
# We create this file before the command is invoked!
<file name="log/field163">
<protocol>
POST /we/want/163 HTTP/1.1\r
User-Agent: curl/7.11.2-CVS (i686-pc-linux-gnu) libcurl/7.11.2-CVS OpenSSL/0.9.6b zlib/1.1.4 c-ares/1.0.0\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
Content-Length: 304\r
HTTP range with multiple ranges
</name>
<command>
-http://%HOSTIP:%HOSTPORT/want/164 -r 0-10,12-15
+http://%HOSTIP:%HTTPPORT/want/164 -r 0-10,12-15
</command>
</test>
<protocol>
GET /want/164 HTTP/1.1\r
Range: bytes=0-10,12-15\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
HTTP over proxy with IDN host name
</name>
<command>
-http://www.åäö.se/page/165 -x %HOSTIP:%HOSTPORT
+http://www.åäö.se/page/165 -x %HOSTIP:%HTTPPORT
</command>
</test>
HTTP formpost a file with spaces in name
</name>
<command>
-http://%HOSTIP:%HOSTPORT/we/want/166 -F "name=@log/fie ld 166"
+http://%HOSTIP:%HTTPPORT/we/want/166 -F "name=@log/fie ld 166"
</command>
# We create this file before the command is invoked!
<file name="log/fie ld 166">
<protocol>
POST /we/want/166 HTTP/1.1\r
User-Agent: curl/7.12.0-CVS (i686-pc-linux-gnu) libcurl/7.12.0-CVS OpenSSL/0.9.6b zlib/1.1.4 c-ares/1.2.0 libidn/0.4.3\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
Content-Length: 227\r
HTTP with proxy-requiring-Basic to site-requiring-Digest
</name>
<command>
-http://data.from.server.requiring.digest.hohoho.com/167 --proxy http://%HOSTIP:%HOSTPORT --proxy-user foo:bar --digest --user digest:alot
+http://data.from.server.requiring.digest.hohoho.com/167 --proxy http://%HOSTIP:%HTTPPORT --proxy-user foo:bar --digest --user digest:alot
</command>
</test>
HTTP with proxy-requiring-Digest to site-requiring-Digest
</name>
<command>
-http://data.from.server.requiring.digest.hohoho.com/168 --proxy http://%HOSTIP:%HOSTPORT --proxy-user foo:bar --proxy-digest --digest --user digest:alot
+http://data.from.server.requiring.digest.hohoho.com/168 --proxy http://%HOSTIP:%HTTPPORT --proxy-user foo:bar --proxy-digest --digest --user digest:alot
</command>
</test>
HTTP with proxy-requiring-NTLM to site-requiring-Digest
</name>
<command>
-http://data.from.server.requiring.digest.hohoho.com/169 --proxy http://%HOSTIP:%HOSTPORT --proxy-user foo:bar --proxy-ntlm --digest --user digest:alot
+http://data.from.server.requiring.digest.hohoho.com/169 --proxy http://%HOSTIP:%HTTPPORT --proxy-user foo:bar --proxy-ntlm --digest --user digest:alot
</command>
</test>
--max-time 180
</stdin>
<command>
--K - %HOSTIP:%HOSTPORT/that.site.com/17
+-K - %HOSTIP:%HTTPPORT/that.site.com/17
</command>
</test>
<protocol>
MOOO /that.site.com/17 HTTP/1.1\r
User-Agent: agent007 license to drill \r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
HTTP POST with --proxy-ntlm and no SSL with no response
</name>
<command>
-http://a.galaxy.far.far.away/170 --proxy http://%HOSTIP:%HOSTPORT --proxy-user foo:bar --proxy-ntlm -F "dummy=value"
+http://a.galaxy.far.far.away/170 --proxy http://%HOSTIP:%HTTPPORT --proxy-user foo:bar --proxy-ntlm -F "dummy=value"
</command>
</test>
HTTP, get cookie with dot prefixed full domain
</name>
<command>
--c log/jar171 -x %HOSTIP:%HOSTPORT http://z.x.com/171
+-c log/jar171 -x %HOSTIP:%HTTPPORT http://z.x.com/171
</command>
</client>
HTTP with cookies file and custom added cookie
</name>
<command>
-http://%HOSTIP:%HOSTPORT/we/want/172 -b log/jar172.txt -b "tool=curl; name=fool"
+http://%HOSTIP:%HTTPPORT/we/want/172 -b log/jar172.txt -b "tool=curl; name=fool"
</command>
<file name="log/jar172.txt">
# Netscape HTTP Cookie File
</strip>
<protocol>
GET /we/want/172 HTTP/1.1\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
Cookie: nodomain=value; partmatch=present; tool=curl; name=fool\r
HTTP RFC1867-formpost a file from stdin with "faked" filename
</name>
<command>
-http://%HOSTIP:%HOSTPORT/we/want/173 -F field1=contents1 -F "fileupload=@-;filename=/dev/null"
+http://%HOSTIP:%HTTPPORT/we/want/173 -F field1=contents1 -F "fileupload=@-;filename=/dev/null"
</command>
<stdin>
<protocol>
POST /we/want/173 HTTP/1.1\r
User-Agent: curl/7.12.1-CVS (i686-pc-linux-gnu) libcurl/7.12.1-CVS OpenSSL/0.9.6b ipv6 zlib/1.1.4 GSS libidn/0.4.6\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
Content-Length: 359\r
HTTP POST --anyauth to server not requiring any auth at all
</name>
<command>
-http://%HOSTIP:%HOSTPORT/174 -u testuser:testpass --anyauth -d "junkelijunk"
+http://%HOSTIP:%HTTPPORT/174 -u testuser:testpass --anyauth -d "junkelijunk"
</command>
</test>
<protocol nonewline=yes>
HEAD /174 HTTP/1.1\r
User-Agent: curl/7.12.1-CVS (i686-pc-linux-gnu) libcurl/7.12.1-CVS OpenSSL/0.9.6b ipv6 zlib/1.1.4 GSS libidn/0.4.6\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
POST /174 HTTP/1.1\r
User-Agent: curl/7.12.1-CVS (i686-pc-linux-gnu) libcurl/7.12.1-CVS OpenSSL/0.9.6b ipv6 zlib/1.1.4 GSS libidn/0.4.6\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
Content-Length: 11\r
HTTP POST --digest to server not requiring any auth at all
</name>
<command>
-http://%HOSTIP:%HOSTPORT/175 -u auser:apasswd --digest -d "junkelijunk"
+http://%HOSTIP:%HTTPPORT/175 -u auser:apasswd --digest -d "junkelijunk"
</command>
</test>
<protocol nonewline=yes>
HEAD /175 HTTP/1.1\r
User-Agent: curl/7.12.1-CVS (i686-pc-linux-gnu) libcurl/7.12.1-CVS OpenSSL/0.9.6b ipv6 zlib/1.1.4 GSS libidn/0.4.6\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
POST /175 HTTP/1.1\r
User-Agent: curl/7.12.1-CVS (i686-pc-linux-gnu) libcurl/7.12.1-CVS OpenSSL/0.9.6b ipv6 zlib/1.1.4 GSS libidn/0.4.6\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
Content-Length: 11\r
HTTP POST --ntlm to server not requiring any auth at all
</name>
<command>
-http://%HOSTIP:%HOSTPORT/176 -u auser:apasswd --ntlm -d "junkelijunk"
+http://%HOSTIP:%HTTPPORT/176 -u auser:apasswd --ntlm -d "junkelijunk"
</command>
</test>
HEAD /176 HTTP/1.1\r
Authorization: NTLM TlRMTVNTUAABAAAAAgIAAAAAAAAgAAAAAAAAACAAAAA=\r
User-Agent: curl/7.12.1-CVS (i686-pc-linux-gnu) libcurl/7.12.1-CVS OpenSSL/0.9.6b ipv6 zlib/1.1.4 GSS libidn/0.4.6\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
POST /176 HTTP/1.1\r
User-Agent: curl/7.12.1-CVS (i686-pc-linux-gnu) libcurl/7.12.1-CVS OpenSSL/0.9.6b ipv6 zlib/1.1.4 GSS libidn/0.4.6\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
Content-Length: 11\r
HTTP POST --digest to server doing a 302-location response
</name>
<command>
-http://%HOSTIP:%HOSTPORT/177 -u auser:apasswd --digest -d "junkelijunk"
+http://%HOSTIP:%HTTPPORT/177 -u auser:apasswd --digest -d "junkelijunk"
</command>
</test>
<protocol>
HEAD /177 HTTP/1.1\r
User-Agent: curl/7.12.1-CVS (i686-pc-linux-gnu) libcurl/7.12.1-CVS OpenSSL/0.9.6b ipv6 zlib/1.1.4 GSS libidn/0.4.6\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
simple HTTP GET with negative Content-Length
</name>
<command>
-http://%HOSTIP:%HOSTPORT/178
+http://%HOSTIP:%HTTPPORT/178
</command>
</client>
</strip>
<protocol>
GET /178 HTTP/1.1\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
HTTP using proxy and cookies with path checks
</name>
<command>
-http://supertrooper.fake/c/179 -b log/injar179 -x %HOSTIP:%HOSTPORT
+http://supertrooper.fake/c/179 -b log/injar179 -x %HOSTIP:%HTTPPORT
</command>
<file name="log/injar179">
supertrooper.fake FALSE /a FALSE 2139150993 mooo indeed
multiple requests using {} in URL
</name>
<command>
-'%HOSTIP:%HOSTPORT/{18,180002,180003}'
+'%HOSTIP:%HTTPPORT/{18,180002,180003}'
</command>
</test>
<protocol>
GET /18 HTTP/1.1\r
User-Agent: curl/7.8.1-pre3 (sparc-sun-solaris2.7) libcurl 7.8.1-pre3 (OpenSSL 0.9.6a) (krb4 enabled)\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
GET /180002 HTTP/1.1\r
User-Agent: curl/7.8.1-pre3 (sparc-sun-solaris2.7) libcurl 7.8.1-pre3 (OpenSSL 0.9.6a) (krb4 enabled)\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
GET /180003 HTTP/1.1\r
User-Agent: curl/7.8.1-pre3 (sparc-sun-solaris2.7) libcurl 7.8.1-pre3 (OpenSSL 0.9.6a) (krb4 enabled)\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
</protocol>
<stdout>
---_curl_--127.0.0.1:8999/18
+--_curl_--127.0.0.1:%HTTPPORT/18
HTTP/1.1 200 OK
Funny-head: yesyes
Content-Length: 4\r
moo
---_curl_--127.0.0.1:8999/180002
+--_curl_--127.0.0.1:%HTTPPORT/180002
HTTP/1.1 200 OK
Funny-head: yesyes
Content-Length: 4\r
foo
---_curl_--127.0.0.1:8999/180003
+--_curl_--127.0.0.1:%HTTPPORT/180003
HTTP/1.1 200 OK
Funny-head: yesyes
Content-Length: 4\r
HTTP 1.0 PUT
</name>
<command>
-http://%HOSTIP:%HOSTPORT/we/want/180 -T log/test180.txt --http1.0
+http://%HOSTIP:%HTTPPORT/we/want/180 -T log/test180.txt --http1.0
</command>
<file name="log/test180.txt">
Weird
</strip>
<protocol>
PUT /we/want/180 HTTP/1.0\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
Content-Length: 78\r
HTTP 1.0 POST
</name>
<command>
-http://%HOSTIP:%HOSTPORT/we/want/181 --data-binary @log/test181.txt --http1.0
+http://%HOSTIP:%HTTPPORT/we/want/181 --data-binary @log/test181.txt --http1.0
</command>
<file name="log/test181.txt">
Weird
</strip>
<protocol>
POST /we/want/181 HTTP/1.0\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
Content-Length: 79\r
HTTP GET two URLs over a single proxy with persistent connection
</name>
<command>
-http://deathstar.another.galaxy/183 http://a.galaxy.far.far.away/183 --proxy http://%HOSTIP:%HOSTPORT
+http://deathstar.another.galaxy/183 http://a.galaxy.far.far.away/183 --proxy http://%HOSTIP:%HTTPPORT
</command>
</test>
HTTP GET with user and password
</name>
<command>
- -u fake:user http://%HOSTIP:%HOSTPORT/2
+ -u fake:user http://%HOSTIP:%HTTPPORT/2
</command>
</test>
<protocol>
GET /2 HTTP/1.1\r
Authorization: Basic ZmFrZTp1c2Vy\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
get HTTP with URL > 10000 bytes
</name>
<command>
-%HOSTIP:%HOSTPORT/`perl -e 'print "a" x 10000;'`/22
+%HOSTIP:%HTTPPORT/`perl -e 'print "a" x 10000;'`/22
</command>
</test>
<protocol>
GET /aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa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aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/22 HTTP/1.1\r
User-Agent: curl/7.4.2 (sparc-sun-solaris2.7) libcurl 7.4.2 (SSL 0.9.6)\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
unsupported protocol:// URL
</name>
<command>
-htfp://%HOSTIP:%HOSTPORT/none.htfml
+htfp://%HOSTIP:%HTTPPORT/none.htfml
</command>
</test>
HTTP GET fail silently on HTTP error return
</name>
<command>
-http://%HOSTIP:%HOSTPORT/24 --fail
+http://%HOSTIP:%HTTPPORT/24 --fail
</command>
</test>
<protocol>
GET /24 HTTP/1.1\r
User-Agent: curl/7.8.1-pre3 (sparc-sun-solaris2.7) libcurl 7.8.1-pre3 (OpenSSL 0.9.6a) (krb4 enabled)\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
looping HTTP Location: following with --max-redirs, no persistance
</name>
<command>
-http://%HOSTIP:%HOSTPORT/want/25 -L --max-redirs 5
+http://%HOSTIP:%HTTPPORT/want/25 -L --max-redirs 5
</command>
</test>
<protocol>
GET /want/25 HTTP/1.1\r
User-Agent: curl/7.8.1-pre3 (sparc-sun-solaris2.7) libcurl 7.8.1-pre3 (OpenSSL 0.9.6a) (krb4 enabled)\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
GET /want/data/reply/25 HTTP/1.1\r
User-Agent: curl/7.8.1-pre3 (sparc-sun-solaris2.7) libcurl 7.8.1-pre3 (OpenSSL 0.9.6a) (krb4 enabled)\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
GET /want/data/reply/data/reply/25 HTTP/1.1\r
User-Agent: curl/7.8.1-pre3 (sparc-sun-solaris2.7) libcurl 7.8.1-pre3 (OpenSSL 0.9.6a) (krb4 enabled)\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
GET /want/data/reply/data/reply/data/reply/25 HTTP/1.1\r
User-Agent: curl/7.8.1-pre3 (sparc-sun-solaris2.7) libcurl 7.8.1-pre3 (OpenSSL 0.9.6a) (krb4 enabled)\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
GET /want/data/reply/data/reply/data/reply/data/reply/25 HTTP/1.1\r
User-Agent: curl/7.8.1-pre3 (sparc-sun-solaris2.7) libcurl 7.8.1-pre3 (OpenSSL 0.9.6a) (krb4 enabled)\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
GET /want/data/reply/data/reply/data/reply/data/reply/data/reply/25 HTTP/1.1\r
User-Agent: curl/7.8.1-pre3 (sparc-sun-solaris2.7) libcurl 7.8.1-pre3 (OpenSSL 0.9.6a) (krb4 enabled)\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
specify more -o than URLs
</name>
<command>
-http://%HOSTIP:%HOSTPORT/want/26 -o - -o -
+http://%HOSTIP:%HTTPPORT/want/26 -o - -o -
</command>
</test>
<protocol>
GET /want/26 HTTP/1.1\r
User-Agent: curl/7.8.1-pre3 (sparc-sun-solaris2.7) libcurl 7.8.1-pre3 (OpenSSL 0.9.6a) (krb4 enabled)\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
Get same cookie page several times
</name>
<command>
-'http://%HOSTIP:%HOSTPORT/want/{27,27,27}' -b none
+'http://%HOSTIP:%HTTPPORT/want/{27,27,27}' -b none
</command>
</test>
</strip>
<protocol>
GET /want/27 HTTP/1.1\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
GET /want/27 HTTP/1.1\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
Cookie: thewinneris=nowayyouwin\r
\r
GET /want/27 HTTP/1.1\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
Cookie: thewinneris=nowayyouwin\r
HTTP Location: following with extra spaces in header
</name>
<command>
-http://%HOSTIP:%HOSTPORT/want/28 -L
+http://%HOSTIP:%HTTPPORT/want/28 -L
</command>
</test>
</strip>
<protocol>
GET /want/28 HTTP/1.1\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
GET /online/1,1795,Welcome,00.html/280002.txt?logout=TRUE HTTP/1.1\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
HTTP with 2 secs timeout
</name>
<command>
-http://%HOSTIP:%HOSTPORT/want/29 -m 2
+http://%HOSTIP:%HTTPPORT/want/29 -m 2
</command>
</test>
</strip>
<protocol>
GET /want/29 HTTP/1.1\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
HTTP POST with auth and contents but with content-length set to 0
</name>
<command>
- -d "fooo=mooo&pooo=clue&doo=%20%20%20++++" -u "fake:-user" http://%HOSTIP:%HOSTPORT/3
+ -d "fooo=mooo&pooo=clue&doo=%20%20%20++++" -u "fake:-user" http://%HOSTIP:%HTTPPORT/3
</command>
</test>
<protocol nonewline=yes>
POST /3 HTTP/1.1\r
Authorization: Basic ZmFrZTotdXNlcg==\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
Content-Length: 37\r
HTTP with no data in server reply
</name>
<command>
-http://%HOSTIP:%HOSTPORT/want/30
+http://%HOSTIP:%HTTPPORT/want/30
</command>
</test>
</strip>
<protocol>
GET /want/30 HTTP/1.1\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
</strip>
<protocol>
GET /300 HTTP/1.1\r
-Host: 127.0.0.1:8433\r
+Host: 127.0.0.1:%HTTPSPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
<protocol>
GET /301 HTTP/1.1\r
Authorization: Basic ZmFrZTp1c2Vy\r
-Host: 127.0.0.1:8433\r
+Host: 127.0.0.1:%HTTPSPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
HTTPS GET over HTTP proxy fails
</name>
<command>
--k -U fake:user -x %HOSTIP:%HOSTPORT https://bad.fakeurl-to.test/slash/302
+-k -U fake:user -x %HOSTIP:%HTTPPORT https://bad.fakeurl-to.test/slash/302
</command>
</test>
HTTPS with 2 secs timeout
</name>
<command>
-http://%HOSTIP:%HOSTPORT/want/303 -m 2
+http://%HOSTIP:%HTTPPORT/want/303 -m 2
</command>
</test>
</strip>
<protocol>
GET /want/303 HTTP/1.1\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
<protocol>
POST /we/want/304 HTTP/1.1\r
User-Agent: curl/7.10.4 (i686-pc-linux-gnu) libcurl/7.10.4 OpenSSL/0.9.7a ipv6 zlib/1.1.3\r
-Host: 127.0.0.1:8433\r
+Host: 127.0.0.1:%HTTPSPORT\r
Pragma: no-cache\r
Accept: */*\r
Content-Length: 1390\r
insecure HTTPS without permission
</name>
<command>
-https://%HOSTIP:%HOSTPORT/want/305 --cacert moooo
+https://%HOSTIP:%HTTPPORT/want/305 --cacert moooo
</command>
</test>
</strip>
<protocol>
GET /306 HTTP/1.1\r
-Host: 127.0.0.1:8433\r
+Host: 127.0.0.1:%HTTPSPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
HTTP with weirdly formatted cookies and cookiejar storage
</name>
<command>
-http://%HOSTIP:%HOSTPORT/we/want/31 -b none -c log/jar31.txt
+http://%HOSTIP:%HTTPPORT/we/want/31 -b none -c log/jar31.txt
</command>
</test>
</strip>
<protocol>
GET /we/want/31 HTTP/1.1\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
HTTP with -d and -G
</name>
<command>
--d "foo=moo&moo=poo" http://%HOSTIP:%HOSTPORT/32 -G
+-d "foo=moo&moo=poo" http://%HOSTIP:%HTTPPORT/32 -G
</command>
</client>
<protocol>
GET /32?foo=moo&moo=poo HTTP/1.1
User-Agent: curl/7.9.5 (i686-pc-linux-gnu) libcurl 7.9.5-cvs (OpenSSL 0.9.5) (ipv6 enabled)
-Host: 127.0.0.1:8999
+Host: 127.0.0.1:%HTTPPORT
Pragma: no-cache
Accept: */*
012345678
</file>
<command>
-http://%HOSTIP:%HOSTPORT/33 -Tlog/test33.txt -C 50
+http://%HOSTIP:%HTTPPORT/33 -Tlog/test33.txt -C 50
</command>
</test>
PUT /33 HTTP/1.1\r
Content-Range: bytes 50-99/100\r
User-Agent: curl/7.6 (sparc-sun-solaris2.7) libcurl 7.6-pre4 (SSL 0.9.6) (krb4 enabled)\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
Content-Length: 50\r
HTTP GET with chunked Transfer-Encoding
</name>
<command>
-http://%HOSTIP:%HOSTPORT/34
+http://%HOSTIP:%HTTPPORT/34
</command>
</test>
</strip>
<protocol>
GET /34 HTTP/1.1\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
HTTP GET with bad chunked Transfer-Encoding
</name>
<command>
-http://%HOSTIP:%HOSTPORT/36
+http://%HOSTIP:%HTTPPORT/36
</command>
</test>
</strip>
<protocol>
GET /36 HTTP/1.1\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
HTTP GET with nothing returned from server
</name>
<command>
-http://%HOSTIP:%HOSTPORT/37
+http://%HOSTIP:%HTTPPORT/37
</command>
</test>
</strip>
<protocol>
GET /37 HTTP/1.1\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
HTTP resume request without server supporting it
</name>
<command option="no-output">
-http://%HOSTIP:%HOSTPORT/want/38 -C - -i -o log/fewl.txt
+http://%HOSTIP:%HTTPPORT/want/38 -C - -i -o log/fewl.txt
</command>
<file name="log/fewl.txt">
This text is here to simulate a partly downloaded file to resume
<protocol>
GET /want/38 HTTP/1.1\r
Range: bytes=78-\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
HTTP RFC1867-type formposting with filename= and type=
</name>
<command>
-http://%HOSTIP:%HOSTPORT/we/want/39 -F name=daniel -F tool=curl -F "file=@log/test39.txt;filename=fakerfile;type=moo/foobar" -F file2=@log/test39.txt
+http://%HOSTIP:%HTTPPORT/we/want/39 -F name=daniel -F tool=curl -F "file=@log/test39.txt;filename=fakerfile;type=moo/foobar" -F file2=@log/test39.txt
</command>
# We create this file before the command is invoked!
<file name="log/test39.txt">
<protocol>
POST /we/want/39 HTTP/1.1\r
User-Agent: curl/7.10.4 (i686-pc-linux-gnu) libcurl/7.10.4 OpenSSL/0.9.7a ipv6 zlib/1.1.3\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
Content-Length: 598\r
Replaced internal and added custom HTTP headers
</name>
<command>
- -H "extra-header: here" -H "Accept: replaced" http://%HOSTIP:%HOSTPORT/4
+ -H "extra-header: here" -H "Accept: replaced" http://%HOSTIP:%HTTPPORT/4
</command>
</test>
</strip>
<protocol>
GET /4 HTTP/1.1\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
extra-header: here\r
Accept: replaced\r
HTTP redirect with whitespace after ? (and conversion)
</name>
<command>
-http://%HOSTIP:%HOSTPORT/we/are/all/twits/40 -L
+http://%HOSTIP:%HTTPPORT/we/are/all/twits/40 -L
</command>
</client>
</strip>
<protocol>
GET /we/are/all/twits/40 HTTP/1.1\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
GET /we/are/all/moo.html/?name=d+a+niel&testcase=/400002 HTTP/1.1\r
User-Agent: curl/7.10 (i686-pc-linux-gnu) libcurl/7.10 OpenSSL/0.9.6c ipv6 zlib/1.1.3\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
HTTP formpost with missing file
</name>
<command>
-http://%HOSTIP:%HOSTPORT/want/41 -F moo=@boo
+http://%HOSTIP:%HTTPPORT/want/41 -F moo=@boo
</command>
</test>
HTTP redirect with whitespace in path (and conversion)
</name>
<command>
-http://%HOSTIP:%HOSTPORT/we/are/all/twits/42 -L
+http://%HOSTIP:%HTTPPORT/we/are/all/twits/42 -L
</command>
</client>
</strip>
<protocol>
GET /we/are/all/twits/42 HTTP/1.1\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
GET /we/are/all/m%20o%20o.html/420002 HTTP/1.1\r
User-Agent: curl/7.10 (i686-pc-linux-gnu) libcurl/7.10 OpenSSL/0.9.6c ipv6 zlib/1.1.3\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
HTTP Location: following over HTTP proxy
</name>
<command>
-http://%HOSTIP:%HOSTPORT/want/43 -L -x %HOSTIP:%HOSTPORT
+http://%HOSTIP:%HTTPPORT/want/43 -L -x %HOSTIP:%HTTPPORT
</command>
</test>
^User-Agent:.*
</strip>
<protocol>
-GET http://127.0.0.1:8999/want/43 HTTP/1.1\r
-Host: 127.0.0.1:8999\r
+GET http://127.0.0.1:%HTTPPORT/want/43 HTTP/1.1\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
-GET http://127.0.0.1:8999/want/data/430002.txt?coolsite=yes HTTP/1.1\r
-Host: 127.0.0.1:8999\r
+GET http://127.0.0.1:%HTTPPORT/want/data/430002.txt?coolsite=yes HTTP/1.1\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
HTTP RFC1867-type formposting without Expect: header
</name>
<command>
-http://%HOSTIP:%HOSTPORT/we/want/44 -F name=daniel -F tool=curl -F file=@log/test44.txt -H 'Expect:'
+http://%HOSTIP:%HTTPPORT/we/want/44 -F name=daniel -F tool=curl -F file=@log/test44.txt -H 'Expect:'
</command>
# We create this file before the command is invoked!
<file name="log/test44.txt">
<protocol>
POST /we/want/44 HTTP/1.1\r
User-Agent: curl/7.10.4 (i686-pc-linux-gnu) libcurl/7.10.4 OpenSSL/0.9.7a ipv6 zlib/1.1.3\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
Content-Length: 412\r
simple HTTP Location: without protocol in initial URL
</name>
<command>
-%HOSTIP:%HOSTPORT/want/45 -L
+%HOSTIP:%HTTPPORT/want/45 -L
</command>
</test>
</strip>
<protocol>
GET /want/45 HTTP/1.1\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
GET /want/data.cgi?moo=http://&/450002 HTTP/1.1\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
HTTP, get cookies and store in cookie jar
</name>
<command>
-%HOSTIP:%HOSTPORT/want/46 -c log/jar46 -b log/injar46
+%HOSTIP:%HTTPPORT/want/46 -c log/jar46 -b log/injar46
</command>
<file name="log/injar46">
# Netscape HTTP Cookie File
</strip>
<protocol>
GET /want/46 HTTP/1.1\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
Cookie: empty=; mooo=indeed\r
simple HTTP 1.0 GET
</name>
<command>
-http://%HOSTIP:%HOSTPORT/47 -0
+http://%HOSTIP:%HTTPPORT/47 -0
</command>
</test>
</strip>
<protocol>
GET /47 HTTP/1.0\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
HTTP with -d and -G and -I
</name>
<command>
--d "foo=moo&moo=poo" http://%HOSTIP:%HOSTPORT/48 -G -I
+-d "foo=moo&moo=poo" http://%HOSTIP:%HTTPPORT/48 -G -I
</command>
</client>
</strip>
<protocol>
HEAD /48?foo=moo&moo=poo HTTP/1.1
-Host: 127.0.0.1:8999
+Host: 127.0.0.1:%HTTPPORT
Pragma: no-cache
Accept: */*
HTTP follow redirect with ../
</name>
<command>
-http://%HOSTIP:%HOSTPORT/we/are/all/twits/49 -L
+http://%HOSTIP:%HTTPPORT/we/are/all/twits/49 -L
</command>
</client>
</strip>
<protocol>
GET /we/are/all/twits/49 HTTP/1.1\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
GET /we/are/all/moo.html/490002 HTTP/1.1\r
User-Agent: curl/7.10 (i686-pc-linux-gnu) libcurl/7.10 OpenSSL/0.9.6c ipv6 zlib/1.1.3\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
HTTP over proxy
</name>
<command>
-http://%HOSTIP:%HOSTPORT/we/want/that/page/5 -x %HOSTIP:%HOSTPORT
+http://%HOSTIP:%HTTPPORT/we/want/that/page/5 -x %HOSTIP:%HTTPPORT
</command>
</test>
^User-Agent:.*
</strip>
<protocol>
-GET http://127.0.0.1:8999/we/want/that/page/5 HTTP/1.1\r
-Host: 127.0.0.1:8999\r
+GET http://127.0.0.1:%HTTPPORT/we/want/that/page/5 HTTP/1.1\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
HTTP follow redirect with ../../
</name>
<command>
-http://%HOSTIP:%HOSTPORT/we/are/all/twits/50 -L
+http://%HOSTIP:%HTTPPORT/we/are/all/twits/50 -L
</command>
</client>
</strip>
<protocol>
GET /we/are/all/twits/50 HTTP/1.1\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
GET /we/are/moo.html/500002 HTTP/1.1\r
User-Agent: curl/7.10 (i686-pc-linux-gnu) libcurl/7.10 OpenSSL/0.9.6c ipv6 zlib/1.1.3\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
simple libcurl HTTP GET tool
</name>
<command>
-http://%HOSTIP:%HOSTPORT/500
+http://%HOSTIP:%HTTPPORT/500
</command>
</client>
<verify>
<protocol>
GET /500 HTTP/1.1\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
simple libcurl attempt operation without URL set
</name>
<command>
-http://%HOSTIP:%HOSTPORT/501
+http://%HOSTIP:%HTTPPORT/501
</command>
</client>
simple multi http:// through proxytunnel with authentication info
</name>
<command>
-http://%HOSTIP:%HTTPSPORT/503 localhost:%HOSTPORT
+http://%HOSTIP:%HTTPSPORT/503 localhost:%HTTPPORT
</command>
<file name="log/test503.txt">
foo
# Verify data after the test has been "shot"
<verify>
<protocol>
-CONNECT 127.0.0.1:8433 HTTP/1.0\r
+CONNECT 127.0.0.1:%HTTPSPORT HTTP/1.0\r
Proxy-Authorization: Basic dGVzdDppbmc=\r
\r
GET /503 HTTP/1.1\r
Authorization: Basic dGVzdDppbmc=\r
-Host: 127.0.0.1:8433\r
+Host: 127.0.0.1:%HTTPSPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
lib506
</tool>
<command>
-http://%HOSTIP:%HOSTPORT/506
+http://%HOSTIP:%HTTPPORT/506
</command>
</client>
GLOBAL_CLEANUP
</stdout>
<stderr>
-http://%HOSTIP:%HOSTPORT/506
+http://%HOSTIP:%HTTPPORT/506
</stderr>
<file name="log/jar506">
# Netscape HTTP Cookie File
send HTTP POST using read callback
</name>
<command>
-http://%HOSTIP:%HOSTPORT/508
+http://%HOSTIP:%HTTPPORT/508
</command>
</client>
<verify>
<protocol>
POST /508 HTTP/1.1\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
Content-Length: 45\r
<data>
HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT
-Server: localhost:8433
Content-length:6
Hello
simple HTTPS GET and URL redirect in certificate
</name>
<command>
-https://localhost:%HTTPSPORT/dvcs
+https://localhost:%HTTPSPORT/dvcs %HTTPSPORT
</command>
</client>
</strip>
<protocol>
GET /509 HTTP/1.1
-Host: localhost:8433
+Host: localhost:%HTTPSPORT
Pragma: no-cache
Accept: */*
HTTP follow redirect with exessive ../
</name>
<command>
-http://%HOSTIP:%HOSTPORT/we/are/all/twits/51 -L
+http://%HOSTIP:%HTTPPORT/we/are/all/twits/51 -L
</command>
</client>
</strip>
<protocol>
GET /we/are/all/twits/51 HTTP/1.1\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
GET /510002 HTTP/1.1\r
User-Agent: curl/7.10 (i686-pc-linux-gnu) libcurl/7.10 OpenSSL/0.9.6c ipv6 zlib/1.1.3\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
send HTTP POST using read callback, using chunked transfer-encoding
</name>
<command>
-http://%HOSTIP:%HOSTPORT/510
+http://%HOSTIP:%HTTPPORT/510
</command>
</client>
<verify>
<protocol>
POST /510 HTTP/1.1\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
Transfer-Encoding: chunked\r
simple curl_easy_duplicate() test
</name>
<command>
-http://%HOSTIP:%HOSTPORT/512
+http://%HOSTIP:%HTTPPORT/512
</command>
</client>
</strip>
<protocol>
GET /512 HTTP/1.1\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
send HTTP POST using read callback that returns CURL_READFUNC_ABORT
</name>
<command>
-http://%HOSTIP:%HOSTPORT/513
+http://%HOSTIP:%HTTPPORT/513
</command>
</client>
<verify>
<protocol>
POST /513 HTTP/1.1\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
Content-Length: 1\r
First set options to POST and then to make HEAD
</name>
<command>
-http://%HOSTIP:%HOSTPORT/514
+http://%HOSTIP:%HTTPPORT/514
</command>
</client>
</strip>
<protocol>
HEAD /514 HTTP/1.1\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
HTTP follow redirect with ./-prefix
</name>
<command>
-http://%HOSTIP:%HOSTPORT/we/are/all/twits/52 -L
+http://%HOSTIP:%HTTPPORT/we/are/all/twits/52 -L
</command>
</client>
</strip>
<protocol>
GET /we/are/all/twits/52 HTTP/1.1\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
GET /we/are/all/twits/520002 HTTP/1.1\r
User-Agent: curl/7.10 (i686-pc-linux-gnu) libcurl/7.10 OpenSSL/0.9.6c ipv6 zlib/1.1.3\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
HTTP, junk session cookies
</name>
<command>
-%HOSTIP:%HOSTPORT/want/53 -b log/injar53 -j
+%HOSTIP:%HTTPPORT/want/53 -b log/injar53 -j
</command>
<file name="log/injar53">
127.0.0.1 FALSE / FALSE 2139150993 mooo indeed
</strip>
<protocol>
GET /want/53 HTTP/1.1\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
Cookie: mooo=indeed\r
HTTP with blank Location:
</name>
<command>
-http://%HOSTIP:%HOSTPORT/want/54 -L
+http://%HOSTIP:%HTTPPORT/want/54 -L
</command>
</test>
</strip>
<protocol>
GET /want/54 HTTP/1.1\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
HTTP follow redirect with single slash in path
</name>
<command>
-http://%HOSTIP:%HOSTPORT/55 -L
+http://%HOSTIP:%HTTPPORT/55 -L
</command>
</client>
</strip>
<protocol>
GET /55 HTTP/1.1\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
GET /550002 HTTP/1.1\r
User-Agent: curl/7.10 (i686-pc-linux-gnu) libcurl/7.10 OpenSSL/0.9.6c ipv6 zlib/1.1.3\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
#
</stdin>
<command>
--K - %HOSTIP:%HOSTPORT/that.site.com/56
+-K - %HOSTIP:%HTTPPORT/that.site.com/56
</command>
</test>
</strip>
<protocol>
POST /that.site.com/56 HTTP/1.1\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
Transfer-Encoding: chunked\r
HTTP content-type with spaces in
</name>
<command>
--w '%{content_type}\n' %HOSTIP:%HOSTPORT/57 -o log/out57
+-w '%{content_type}\n' %HOSTIP:%HTTPPORT/57 -o log/out57
</command>
</test>
</strip>
<protocol>
GET /57 HTTP/1.1\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
HTTP PUT from file with weird letters
</name>
<command>
-http://%HOSTIP:%HOSTPORT/we/want/ -T log/58te[]st.txt -g
+http://%HOSTIP:%HTTPPORT/we/want/ -T log/58te[]st.txt -g
</command>
<file name="log/58te[]st.txt">
a few bytes
</strip>
<protocol>
PUT /we/want/58te%5B%5Dst%2Etxt HTTP/1.1\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
Content-Length: 12\r
HTTP URL with slash but with "parameter"
</name>
<command>
-http://%HOSTIP:%HOSTPORT?mooo/59
+http://%HOSTIP:%HTTPPORT?mooo/59
</command>
</client>
</strip>
<protocol>
GET /?mooo/59 HTTP/1.1\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
HTTP with simple cookie send
</name>
<command>
-http://%HOSTIP:%HOSTPORT/we/want/that/page/6 -b "name=contents;name2=content2"
+http://%HOSTIP:%HTTPPORT/we/want/that/page/6 -b "name=contents;name2=content2"
</command>
</test>
</strip>
<protocol>
GET /we/want/that/page/6 HTTP/1.1\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
Cookie: name=contents;name2=content2\r
HTTP PUT from stdin with wrong content-length
</name>
<command>
-http://%HOSTIP:%HOSTPORT/bzz/60 -T - -H "Content-Length: 1" < log/60.txt
+http://%HOSTIP:%HTTPPORT/bzz/60 -T - -H "Content-Length: 1" < log/60.txt
</command>
<file name="log/60.txt">
more than one byte
</strip>
<protocol>
PUT /bzz/60 HTTP/1.1\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
Transfer-Encoding: chunked\r
HTTP with various cookies and custom Host:
</name>
<command>
-http://%HOSTIP:%HOSTPORT/we/want/61 -c log/jar61.txt -H "Host: www.host.foo.com"
+http://%HOSTIP:%HTTPPORT/we/want/61 -c log/jar61.txt -H "Host: www.host.foo.com"
</command>
</client>
HTTP, send cookies when using custom Host:
</name>
<command>
-http://%HOSTIP:%HOSTPORT/we/want/62 -b log/jar62.txt -H "Host: www.host.foo.com"
+http://%HOSTIP:%HTTPPORT/we/want/62 -b log/jar62.txt -H "Host: www.host.foo.com"
</command>
<file name="log/jar62.txt">
# Netscape HTTP Cookie File
HTTP with proxy authorization set in environment
</name>
<setenv>
-http_proxy=http://fake:user@%HOSTIP:%HOSTPORT/
+http_proxy=http://fake:user@%HOSTIP:%HTTPPORT/
</setenv>
<command>
http://we.want.that.site.com/63
HTTP with Digest authorization
</name>
<command>
-http://%HOSTIP:%HOSTPORT/64 -u testuser:testpass --digest
+http://%HOSTIP:%HTTPPORT/64 -u testuser:testpass --digest
</command>
</test>
</strip>
<protocol>
GET /64 HTTP/1.1\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
GET /64 HTTP/1.1\r
Authorization: Digest username="testuser", realm="testrealm", nonce="1053604145", uri="/64", response="c55f7f30d83d774a3d2dcacf725abaca"\r
User-Agent: curl/7.10.5 (i686-pc-linux-gnu) libcurl/7.10.5 OpenSSL/0.9.7a ipv6 zlib/1.1.3\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
HTTP with Digest authorization with bad password
</name>
<command>
-http://%HOSTIP:%HOSTPORT/65 -u testuser:test2pass --digest
+http://%HOSTIP:%HTTPPORT/65 -u testuser:test2pass --digest
</command>
</test>
</strip>
<protocol>
GET /65 HTTP/1.1\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
GET /65 HTTP/1.1\r
Authorization: Digest username="testuser", realm="testrealm", nonce="2053604145", uri="/65", response="66d68d3251f1839576ba7c766cf9205b"\r
User-Agent: curl/7.10.5 (i686-pc-linux-gnu) libcurl/7.10.5 OpenSSL/0.9.7a ipv6 zlib/1.1.3\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
HTTP GET without headers in the response
</name>
<command>
-http://%HOSTIP:%HOSTPORT/66
+http://%HOSTIP:%HTTPPORT/66
</command>
</client>
</strip>
<protocol>
GET /66 HTTP/1.1\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
HTTP with NTLM authorization
</name>
<command>
-http://%HOSTIP:%HOSTPORT/67 -u testuser:testpass --ntlm
+http://%HOSTIP:%HTTPPORT/67 -u testuser:testpass --ntlm
</command>
</test>
GET /67 HTTP/1.1\r
Authorization: NTLM TlRMTVNTUAABAAAAAgIAAAAAAAAgAAAAAAAAACAAAAA=\r
User-Agent: curl/7.10.6-pre1 (i686-pc-linux-gnu) libcurl/7.10.6-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
GET /67 HTTP/1.1\r
Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEgAAAAYABgAYAAAAAAAAABAAAAACAAIAEAAAAAAAAAASAAAAAAAAAB4AAAAAYIAAHRlc3R1c2VyWmRDApEJkUyGOPS3DjvASModEeW/N/FBqYVyF4y6/y/7F6qmEQ7lXjXFF3tH1145\r
User-Agent: curl/7.10.6-pre1 (i686-pc-linux-gnu) libcurl/7.10.6-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
HTTP with NTLM authorization and wrong password
</name>
<command>
-http://%HOSTIP:%HOSTPORT/68 -u testuser:testpass --ntlm
+http://%HOSTIP:%HTTPPORT/68 -u testuser:testpass --ntlm
</command>
</test>
GET /68 HTTP/1.1\r
Authorization: NTLM TlRMTVNTUAABAAAAAgIAAAAAAAAgAAAAAAAAACAAAAA=\r
User-Agent: curl/7.10.6-pre1 (i686-pc-linux-gnu) libcurl/7.10.6-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
GET /68 HTTP/1.1\r
Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEgAAAAYABgAYAAAAAAAAABAAAAACAAIAEAAAAAAAAAASAAAAAAAAAB4AAAAAYIAAHRlc3R1c2VyWmRDApEJkUyGOPS3DjvASModEeW/N/FBqYVyF4y6/y/7F6qmEQ7lXjXFF3tH1145\r
User-Agent: curl/7.10.6-pre1 (i686-pc-linux-gnu) libcurl/7.10.6-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
HTTP with NTLM, Basic or Wild-and-crazy authorization
</name>
<command>
-http://%HOSTIP:%HOSTPORT/69 -u testuser:testpass --anyauth
+http://%HOSTIP:%HTTPPORT/69 -u testuser:testpass --anyauth
</command>
</test>
<protocol>
GET /69 HTTP/1.1\r
User-Agent: curl/7.10.6-pre1 (i686-pc-linux-gnu) libcurl/7.10.6-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
GET /69 HTTP/1.1\r
Authorization: NTLM TlRMTVNTUAABAAAAAgIAAAAAAAAgAAAAAAAAACAAAAA=\r
User-Agent: curl/7.10.6-pre1 (i686-pc-linux-gnu) libcurl/7.10.6-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
GET /69 HTTP/1.1\r
Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEgAAAAYABgAYAAAAAAAAABAAAAACAAIAEAAAAAAAAAASAAAAAAAAAB4AAAAAYIAAHRlc3R1c2VyWmRDApEJkUyGOPS3DjvASModEeW/N/FBqYVyF4y6/y/7F6qmEQ7lXjXFF3tH1145\r
User-Agent: curl/7.10.6-pre1 (i686-pc-linux-gnu) libcurl/7.10.6-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
HTTP with cookie parser and header recording
</name>
<command>
-http://%HOSTIP:%HOSTPORT/we/want/7 -b none -D log/heads7.txt
+http://%HOSTIP:%HTTPPORT/we/want/7 -b none -D log/heads7.txt
</command>
</test>
</strip>
<protocol>
GET /we/want/7 HTTP/1.1\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
HTTP with Digest *OR* NTLM authorization
</name>
<command>
-http://%HOSTIP:%HOSTPORT/70 -u testuser:testpass --anyauth
+http://%HOSTIP:%HTTPPORT/70 -u testuser:testpass --anyauth
</command>
</test>
<protocol>
GET /70 HTTP/1.1\r
User-Agent: curl/7.10.6-pre1 (i686-pc-linux-gnu) libcurl/7.10.6-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
GET /70 HTTP/1.1\r
Authorization: Digest username="testuser", realm="testrealm", nonce="1053604199", uri="/70", response="2c9a6f00af0d86497b177b90e90c688a"\r
User-Agent: curl/7.10.6-pre1 (i686-pc-linux-gnu) libcurl/7.10.6-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
-F file=@log/test71.txt
</stdin>
<command>
-http://%HOSTIP:%HOSTPORT/we/want/71 -K -
+http://%HOSTIP:%HTTPPORT/we/want/71 -K -
</command>
# We create this file before the command is invoked!
<file name="log/test71.txt">
<protocol>
POST /we/want/71 HTTP/1.1\r
User-Agent: curl/7.10.4 (i686-pc-linux-gnu) libcurl/7.10.4 OpenSSL/0.9.7a ipv6 zlib/1.1.3\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
Content-Length: 412\r
HTTP with Digest *OR* Basic authorization
</name>
<command>
-http://%HOSTIP:%HOSTPORT/72 -u testuser:testpass --anyauth
+http://%HOSTIP:%HTTPPORT/72 -u testuser:testpass --anyauth
</command>
</test>
<protocol>
GET /72 HTTP/1.1\r
User-Agent: curl/7.10.6-pre1 (i686-pc-linux-gnu) libcurl/7.10.6-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
GET /72 HTTP/1.1\r
Authorization: Digest username="testuser", realm="testrealm", nonce="1053604199", uri="/72", response="9fcd1330377365a09bbcb33b2cbb25bd"\r
User-Agent: curl/7.10.6-pre1 (i686-pc-linux-gnu) libcurl/7.10.6-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
HTTP, receive cookies when using custom Host:, domain using only two dots
</name>
<command>
-http://%HOSTIP:%HOSTPORT/we/want/73 -c log/jar73.txt -H "Host: host.NOT_DISCLOSED.se"
+http://%HOSTIP:%HTTPPORT/we/want/73 -c log/jar73.txt -H "Host: host.NOT_DISCLOSED.se"
</command>
</client>
HTTP, urlglob {}-retrieval and -o #[num] usage
</name>
<command option=no-output>
-"http://%HOSTIP:%HOSTPORT/{74,740001}" -o "log/dumpit#1.dump"
+"http://%HOSTIP:%HTTPPORT/{74,740001}" -o "log/dumpit#1.dump"
</command>
</client>
</strip>
<protocol>
GET /74 HTTP/1.1\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
GET /740001 HTTP/1.1\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
HTTP, urlglob retrieval with bad range
</name>
<command option=no-output>
-"http://%HOSTIP:%HOSTPORT/[1-1]" -o "log/weee#1.dump" --stderr -
+"http://%HOSTIP:%HTTPPORT/[1-1]" -o "log/weee#1.dump" --stderr -
</command>
</client>
HTTP, -O with no file name part in the URL
</name>
<command option=no-output>
-http://%HOSTIP:%HOSTPORT/76/ -O
+http://%HOSTIP:%HTTPPORT/76/ -O
</command>
</client>
HTTP with -z "older date"
</name>
<command>
-http://%HOSTIP:%HOSTPORT/77 -z "1999-12-12 12:00:00 MET"
+http://%HOSTIP:%HTTPPORT/77 -z "1999-12-12 12:00:00 MET"
</command>
</client>
</strip>
<protocol>
GET /77 HTTP/1.1\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
If-Modified-Since: Sun, 12 Dec 1999 11:00:00 GMT\r
HTTP with -z "newer date"
</name>
<command>
-http://%HOSTIP:%HOSTPORT/78 -z "1999-12-12 12:00:00 MET"
+http://%HOSTIP:%HTTPPORT/78 -z "1999-12-12 12:00:00 MET"
</command>
</client>
</strip>
<protocol>
GET /78 HTTP/1.1\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
If-Modified-Since: Sun, 12 Dec 1999 11:00:00 GMT\r
FTP over HTTP proxy
</name>
<command>
-ftp://%HOSTIP:%HOSTPORT/we/want/that/page/79 -x %HOSTIP:%HOSTPORT
+ftp://%HOSTIP:%HTTPPORT/we/want/that/page/79 -x %HOSTIP:%HTTPPORT
</command>
</test>
^User-Agent:.*
</strip>
<protocol>
-GET ftp://127.0.0.1:8999/we/want/that/page/79 HTTP/1.1\r
-Host: 127.0.0.1:8999\r
+GET ftp://127.0.0.1:%HTTPPORT/we/want/that/page/79 HTTP/1.1\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
HTTP with cookie parsing from header file
</name>
<command>
-http://%HOSTIP:%HOSTPORT/we/want/8 -b log/heads8.txt
+http://%HOSTIP:%HTTPPORT/we/want/8 -b log/heads8.txt
</command>
# We create this file before the command is invoked!
</strip>
<protocol>
GET /we/want/8 HTTP/1.1\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
Cookie: partmatch=present; foobar=name\r
HTTP CONNECT with proxy and host Basic authentication
</name>
<command>
-http://%HOSTIP:%HOSTPORT/we/want/that/page/80 -p -x %HOSTIP:%HOSTPORT --user iam:myself --proxy-user youare:yourself
+http://%HOSTIP:%HTTPPORT/we/want/that/page/80 -p -x %HOSTIP:%HTTPPORT --user iam:myself --proxy-user youare:yourself
</command>
</test>
^User-Agent:.*
</strip>
<protocol>
-CONNECT 127.0.0.1:8999 HTTP/1.0\r
+CONNECT 127.0.0.1:%HTTPPORT HTTP/1.0\r
Proxy-Authorization: Basic eW91YXJlOnlvdXJzZWxm\r
User-Agent: curl/7.10.7-pre2 (i686-pc-linux-gnu) libcurl/7.10.7-pre2 OpenSSL/0.9.7a zlib/1.1.3\r
\r
GET /we/want/that/page/80 HTTP/1.1\r
Authorization: Basic aWFtOm15c2VsZg==\r
User-Agent: curl/7.10.7-pre2 (i686-pc-linux-gnu) libcurl/7.10.7-pre2 OpenSSL/0.9.7a zlib/1.1.3\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
HTTP with proxy using NTLM authorization
</name>
<command>
-http://%HOSTIP:%HOSTPORT/81 --proxy-user testuser:testpass -x http://%HOSTIP:%HOSTPORT --proxy-ntlm
+http://%HOSTIP:%HTTPPORT/81 --proxy-user testuser:testpass -x http://%HOSTIP:%HTTPPORT --proxy-ntlm
</command>
</test>
^User-Agent:.*
</strip>
<protocol>
-GET http://127.0.0.1:8999/81 HTTP/1.1\r
+GET http://127.0.0.1:%HTTPPORT/81 HTTP/1.1\r
Proxy-Authorization: NTLM TlRMTVNTUAABAAAAAgIAAAAAAAAgAAAAAAAAACAAAAA=\r
User-Agent: curl/7.10.6-pre1 (i686-pc-linux-gnu) libcurl/7.10.6-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
-GET http://127.0.0.1:8999/81 HTTP/1.1\r
+GET http://127.0.0.1:%HTTPPORT/81 HTTP/1.1\r
Proxy-Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEgAAAAYABgAYAAAAAAAAABAAAAACAAIAEAAAAAAAAAASAAAAAAAAAB4AAAAAYIAAHRlc3R1c2VyWmRDApEJkUyGOPS3DjvASModEeW/N/FBqYVyF4y6/y/7F6qmEQ7lXjXFF3tH1145\r
User-Agent: curl/7.10.6-pre1 (i686-pc-linux-gnu) libcurl/7.10.6-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
HTTP with proxy requiring NTLM, but we send Basic
</name>
<command>
-http://%HOSTIP:%HOSTPORT/82 --proxy-user testuser:testpass -x http://%HOSTIP:%HOSTPORT
+http://%HOSTIP:%HTTPPORT/82 --proxy-user testuser:testpass -x http://%HOSTIP:%HTTPPORT
</command>
</test>
^User-Agent:.*
</strip>
<protocol>
-GET http://127.0.0.1:8999/82 HTTP/1.1\r
+GET http://127.0.0.1:%HTTPPORT/82 HTTP/1.1\r
Proxy-Authorization: Basic dGVzdHVzZXI6dGVzdHBhc3M=\r
User-Agent: curl/7.10.6-pre1 (i686-pc-linux-gnu) libcurl/7.10.6-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
HTTP over proxy-tunnel with site authentication
</name>
<command>
-http://%HOSTIP:%HOSTPORT/we/want/that/page/83 -p -x %HOSTIP:%HOSTPORT --user iam:myself
+http://%HOSTIP:%HTTPPORT/we/want/that/page/83 -p -x %HOSTIP:%HTTPPORT --user iam:myself
</command>
</test>
^User-Agent:.*
</strip>
<protocol>
-CONNECT 127.0.0.1:8999 HTTP/1.0\r
+CONNECT 127.0.0.1:%HTTPPORT HTTP/1.0\r
User-Agent: curl/7.10.7-pre2 (i686-pc-linux-gnu) libcurl/7.10.7-pre2 OpenSSL/0.9.7a zlib/1.1.3\r
\r
GET /we/want/that/page/83 HTTP/1.1\r
Authorization: Basic aWFtOm15c2VsZg==\r
User-Agent: curl/7.10.7-pre2 (i686-pc-linux-gnu) libcurl/7.10.7-pre2 OpenSSL/0.9.7a zlib/1.1.3\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
HTTP over proxy with site authentication
</name>
<command>
-http://%HOSTIP:%HOSTPORT/we/want/that/page/84 -x %HOSTIP:%HOSTPORT --user iam:myself
+http://%HOSTIP:%HTTPPORT/we/want/that/page/84 -x %HOSTIP:%HTTPPORT --user iam:myself
</command>
</test>
^User-Agent:.*
</strip>
<protocol>
-GET http://127.0.0.1:8999/we/want/that/page/84 HTTP/1.1\r
+GET http://127.0.0.1:%HTTPPORT/we/want/that/page/84 HTTP/1.1\r
Authorization: Basic aWFtOm15c2VsZg==\r
User-Agent: curl/7.10.7-pre2 (i686-pc-linux-gnu) libcurl/7.10.7-pre2 OpenSSL/0.9.7a zlib/1.1.3\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
HTTP over proxy with site and proxy authentication
</name>
<command>
-http://%HOSTIP:%HOSTPORT/we/want/that/page/85 -x %HOSTIP:%HOSTPORT --user iam:myself --proxy-user testing:this
+http://%HOSTIP:%HTTPPORT/we/want/that/page/85 -x %HOSTIP:%HTTPPORT --user iam:myself --proxy-user testing:this
</command>
</test>
^User-Agent:.*
</strip>
<protocol>
-GET http://127.0.0.1:8999/we/want/that/page/85 HTTP/1.1\r
+GET http://127.0.0.1:%HTTPPORT/we/want/that/page/85 HTTP/1.1\r
Proxy-Authorization: Basic dGVzdGluZzp0aGlz\r
Authorization: Basic aWFtOm15c2VsZg==\r
User-Agent: curl/7.10.7-pre2 (i686-pc-linux-gnu) libcurl/7.10.7-pre2 OpenSSL/0.9.7a zlib/1.1.3\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
HTTP, urlglob []-retrieval and -o #[num] usage
</name>
<command option=no-output>
-"http://%HOSTIP:%HOSTPORT/[860001-860003]" -o "log/dumpit#1.dump"
+"http://%HOSTIP:%HTTPPORT/[860001-860003]" -o "log/dumpit#1.dump"
</command>
</client>
<protocol>
GET /860001 HTTP/1.1\r
User-Agent: curl/7.10.7-pre4 (i686-pc-linux-gnu) libcurl/7.10.7-pre4 OpenSSL/0.9.7a ipv6 zlib/1.1.3 GSS\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
GET /860002 HTTP/1.1\r
User-Agent: curl/7.10.7-pre4 (i686-pc-linux-gnu) libcurl/7.10.7-pre4 OpenSSL/0.9.7a ipv6 zlib/1.1.3 GSS\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
GET /860003 HTTP/1.1\r
User-Agent: curl/7.10.7-pre4 (i686-pc-linux-gnu) libcurl/7.10.7-pre4 OpenSSL/0.9.7a ipv6 zlib/1.1.3 GSS\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
urlglob with bad -o #[num] usage
</name>
<command option=no-output>
-"http://%HOSTIP:%HOSTPORT/[870001-870003]" -o "log/dumpit#2.dump"
+"http://%HOSTIP:%HTTPPORT/[870001-870003]" -o "log/dumpit#2.dump"
</command>
</client>
HTTP PUT with Digest authorization
</name>
<command>
-http://%HOSTIP:%HOSTPORT/88 -T log/put88 -u testuser:testpass --digest
+http://%HOSTIP:%HTTPPORT/88 -T log/put88 -u testuser:testpass --digest
</command>
<file name="log/put88">
This is data we upload with PUT
</strip>
<protocol>
HEAD /88 HTTP/1.1\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
PUT /88 HTTP/1.1\r
Authorization: Digest username="testuser", realm="testrealm", nonce="1053604145", uri="/88", response="78a49fa53d0c228778297687d4168e71"\r
User-Agent: curl/7.10.5 (i686-pc-linux-gnu) libcurl/7.10.5 OpenSSL/0.9.7a ipv6 zlib/1.1.3\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
Content-Length: 85\r
HTTP with NTLM and follow-location
</name>
<command>
-http://%HOSTIP:%HOSTPORT/89 -u testuser:testpass --ntlm -L
+http://%HOSTIP:%HTTPPORT/89 -u testuser:testpass --ntlm -L
</command>
</test>
GET /89 HTTP/1.1\r
Authorization: NTLM TlRMTVNTUAABAAAAAgIAAAAAAAAgAAAAAAAAACAAAAA=\r
User-Agent: curl/7.10.6-pre1 (i686-pc-linux-gnu) libcurl/7.10.6-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
GET /89 HTTP/1.1\r
Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEgAAAAYABgAYAAAAAAAAABAAAAACAAIAEAAAAAAAAAASAAAAAAAAAB4AAAAAYIAAHRlc3R1c2VyWmRDApEJkUyGOPS3DjvASModEeW/N/FBqYVyF4y6/y/7F6qmEQ7lXjXFF3tH1145\r
User-Agent: curl/7.10.6-pre1 (i686-pc-linux-gnu) libcurl/7.10.6-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
GET /you/890010 HTTP/1.1\r
Authorization: NTLM TlRMTVNTUAABAAAAAgIAAAAAAAAgAAAAAAAAACAAAAA=\r
User-Agent: curl/7.10.8-pre1 (i686-pc-linux-gnu) libcurl/7.10.8-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3 GSS\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
GET /you/890010 HTTP/1.1\r
Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEgAAAAYABgAYAAAAAAAAABAAAAACAAIAEAAAAAAAAAASAAAAAAAAAB4AAAAAYIAAHRlc3R1c2VyWmRDApEJkUyGOPS3DjvASModEeW/N/FBqYVyF4y6/y/7F6qmEQ7lXjXFF3tH1145\r
User-Agent: curl/7.10.8-pre1 (i686-pc-linux-gnu) libcurl/7.10.8-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3 GSS\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
HTTP RFC1867-type formposting
</name>
<command>
-http://%HOSTIP:%HOSTPORT/we/want/9 -F name=daniel -F tool=curl -F file=@log/test9.txt
+http://%HOSTIP:%HTTPPORT/we/want/9 -F name=daniel -F tool=curl -F file=@log/test9.txt
</command>
# We create this file before the command is invoked!
<file name="log/test9.txt">
<protocol>
POST /we/want/9 HTTP/1.1\r
User-Agent: curl/7.10.4 (i686-pc-linux-gnu) libcurl/7.10.4 OpenSSL/0.9.7a ipv6 zlib/1.1.3\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
Content-Length: 411\r
HTTP with NTLM via --anyauth, and then follow-location with NTLM again
</name>
<command>
-http://%HOSTIP:%HOSTPORT/90 -u testuser:testpass --anyauth -L
+http://%HOSTIP:%HTTPPORT/90 -u testuser:testpass --anyauth -L
</command>
</test>
</strip>
<protocol>
GET /90 HTTP/1.1\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
GET /90 HTTP/1.1\r
Authorization: NTLM TlRMTVNTUAABAAAAAgIAAAAAAAAgAAAAAAAAACAAAAA=\r
User-Agent: curl/7.10.6-pre1 (i686-pc-linux-gnu) libcurl/7.10.6-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
GET /90 HTTP/1.1\r
Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEgAAAAYABgAYAAAAAAAAABAAAAACAAIAEAAAAAAAAAASAAAAAAAAAB4AAAAAYIAAHRlc3R1c2VyWmRDApEJkUyGOPS3DjvASModEeW/N/FBqYVyF4y6/y/7F6qmEQ7lXjXFF3tH1145\r
User-Agent: curl/7.10.6-pre1 (i686-pc-linux-gnu) libcurl/7.10.6-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
GET /you/900010 HTTP/1.1\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
GET /you/900010 HTTP/1.1\r
Authorization: NTLM TlRMTVNTUAABAAAAAgIAAAAAAAAgAAAAAAAAACAAAAA=\r
User-Agent: curl/7.10.8-pre1 (i686-pc-linux-gnu) libcurl/7.10.8-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3 GSS\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
GET /you/900010 HTTP/1.1\r
Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEgAAAAYABgAYAAAAAAAAABAAAAACAAIAEAAAAAAAAAASAAAAAAAAAB4AAAAAYIAAHRlc3R1c2VyWmRDApEJkUyGOPS3DjvASModEeW/N/FBqYVyF4y6/y/7F6qmEQ7lXjXFF3tH1145\r
User-Agent: curl/7.10.8-pre1 (i686-pc-linux-gnu) libcurl/7.10.8-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3 GSS\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
HTTP with NTLM/Negotiate/Basic, anyauth and user with domain, with size 0
</name>
<command>
-http://%HOSTIP:%HOSTPORT/91 --anyauth -u mydomain\\myself:secret
+http://%HOSTIP:%HTTPPORT/91 --anyauth -u mydomain\\myself:secret
</command>
</test>
<protocol>
GET /91 HTTP/1.1\r
User-Agent: curl/7.10.6-pre1 (i686-pc-linux-gnu) libcurl/7.10.6-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
GET /91 HTTP/1.1\r
Authorization: NTLM TlRMTVNTUAABAAAAAgIAAAAAAAAgAAAAAAAAACAAAAA=\r
User-Agent: curl/7.10.6-pre1 (i686-pc-linux-gnu) libcurl/7.10.6-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
GET /91 HTTP/1.1\r
Authorization: NTLM TlRMTVNTUAADAAAAGAAYAE4AAAAYABgAZgAAAAgACABAAAAABgAGAEgAAAAAAAAATgAAAAAAAAB+AAAAAYIAAG15ZG9tYWlubXlzZWxmwjImlHmYemDYVmFrmRFoVn3jfoYDE+7QLmWXF7FJDlDNWSItJ+RylXJGAJdepH4C\r
User-Agent: curl/7.10.6-pre1 (i686-pc-linux-gnu) libcurl/7.10.6-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
HTTP resume transfer with the whole file already downloaded
</name>
<command>
-http://%HOSTIP:%HOSTPORT/want/92 -C 87
+http://%HOSTIP:%HTTPPORT/want/92 -C 87
</command>
</client>
<protocol>
GET /want/92 HTTP/1.1\r
Range: bytes=87-\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
HTTP GET with failed proxy auth
</name>
<command>
-http://%HOSTIP:%HOSTPORT/93 -x %HOSTIP:%HOSTPORT
+http://%HOSTIP:%HTTPPORT/93 -x %HOSTIP:%HTTPPORT
</command>
</client>
^User-Agent:.*
</strip>
<protocol>
-GET http://127.0.0.1:8999/93 HTTP/1.1\r
-Host: 127.0.0.1:8999\r
+GET http://127.0.0.1:%HTTPPORT/93 HTTP/1.1\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
HTTPS GET with failed proxy auth
</name>
<command>
-https://test.anything.really.com:94 -x %HOSTIP:%HOSTPORT
+https://test.anything.really.com:94 -x %HOSTIP:%HTTPPORT
</command>
</client>
HTTP over proxytunnel using POST
</name>
<command>
-http://%HOSTIP:%HOSTPORT/we/want/that/page/95 -p -x %HOSTIP:%HOSTPORT -d "datatopost=ohthatsfunyesyes"
+http://%HOSTIP:%HTTPPORT/we/want/that/page/95 -p -x %HOSTIP:%HTTPPORT -d "datatopost=ohthatsfunyesyes"
</command>
</test>
^User-Agent:.*
</strip>
<protocol nonewline=yes>
-CONNECT 127.0.0.1:8999 HTTP/1.0\r
+CONNECT 127.0.0.1:%HTTPPORT HTTP/1.0\r
User-Agent: curl/7.10.7-pre2 (i686-pc-linux-gnu) libcurl/7.10.7-pre2 OpenSSL/0.9.7a zlib/1.1.3\r
\r
POST /we/want/that/page/95 HTTP/1.1\r
User-Agent: curl/7.10.7-pre2 (i686-pc-linux-gnu) libcurl/7.10.7-pre2 OpenSSL/0.9.7a zlib/1.1.3\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
Content-Length: 27\r
HTTP POST with custom content-type
</name>
<command>
- -d "hejsanallabarn" -H "Content-Type: silly/type" http://%HOSTIP:%HOSTPORT/97
+ -d "hejsanallabarn" -H "Content-Type: silly/type" http://%HOSTIP:%HTTPPORT/97
</command>
</test>
</strip>
<protocol nonewline=yes>
POST /97 HTTP/1.1\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
Content-Type: silly/type
HTTP PUT from stdin with set size, disabling chunked transfer-encoding
</name>
<command>
- -T - -H "Transfer-Encoding:" -H "Content-Length: 14" http://%HOSTIP:%HOSTPORT/98
+ -T - -H "Transfer-Encoding:" -H "Content-Length: 14" http://%HOSTIP:%HTTPPORT/98
</command>
<stdin>
data on stdin
</strip>
<protocol>
PUT /98 HTTP/1.1\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
Content-Length: 14\r
HTTP GET with large-file resume point and failed resume
</name>
<command>
-http://%HOSTIP:%HOSTPORT/99 -C 9999999999
+http://%HOSTIP:%HTTPPORT/99 -C 9999999999
</command>
</client>
<protocol>
GET /99 HTTP/1.1\r
Range: bytes=9999999999-\r
-Host: 127.0.0.1:8999\r
+Host: 127.0.0.1:%HTTPPORT\r
Pragma: no-cache\r
Accept: */*\r
\r
#include <openssl/bio.h>
#include <openssl/ssl.h>
+int portnum; /* the HTTPS port number we use */
typedef struct sslctxparm_st {
CURL* curl;
void * globalparm = NULL;
+char newurl[512];
+
static int ssl_app_verify_callback(X509_STORE_CTX *ctx, void *arg)
{
sslctxparm * p = (sslctxparm *) arg;
(char *)accessinfoURL, (char *)p->accessinfoURL);
OPENSSL_free(p->accessinfoURL);
p->accessinfoURL = accessinfoURL;
- curl_easy_setopt(p->curl, CURLOPT_URL,p->accessinfoURL);
+
+ /* We need to be able to deal with a custom port number, but the
+ URL in the cert uses a static one. We thus need to create a new
+ URL that uses the currently requested port number which may not
+ be the one this URL uses! */
+ sprintf(newurl, "https://localhost:%d/509", portnum);
+ fprintf(stderr, "But *really* Setting URL <%s>\n", newurl);
+
+ curl_easy_setopt(p->curl, CURLOPT_URL, newurl);
}
else
OPENSSL_free(accessinfoURL);
int i = 0;
CURLMsg *msg;
+ if(arg2) {
+ portnum = atoi(arg2);
+ }
+
curl_global_init(CURL_GLOBAL_ALL);
p.curl = curl_easy_init();
my $srcdir = $ENV{'srcdir'} || '.';
my $HOSTIP="127.0.0.1";
-my $HOSTPORT=8999; # bad name, but this is the HTTP server port
-my $HTTPSPORT=8433; # this is the HTTPS server port
-my $FTPPORT=8921; # this is the FTP server port
-my $FTPSPORT=8821; # this is the FTPS server port
+
+my $base = 8990; # base port number
+
+my $HTTPPORT; # HTTP server port
+my $HTTPSPORT; # HTTPS server port
+my $FTPPORT; # FTP server port
+my $FTPSPORT; # FTPS server port
+
my $CURL="../src/curl"; # what curl executable to run on the tests
my $DBGCURL=$CURL; #"../src/.libs/curl"; # alternative for debugging
my $LOGDIR="log";
$pid = checkserver ($HTTPPIDFILE);
# verify if our/any server is running on this port
- my $cmd = "$CURL -o log/verifiedserver http://$HOSTIP:$HOSTPORT/verifiedserver 2>/dev/null";
+ my $cmd = "$CURL -o log/verifiedserver http://$HOSTIP:$HTTPPORT/verifiedserver 2>/dev/null";
print "CMD; $cmd\n" if ($verbose);
my $res = system($cmd);
$pid = 0+$1;
}
elsif($data || ($res != 7)) {
- print "RUN: Unknown HTTP server is running on port $HOSTPORT\n";
+ print "RUN: Unknown HTTP server is running on port $HTTPPORT\n";
return -2;
}
if($dir) {
$flag .= "-d \"$dir\" ";
}
- $cmd="$perl $srcdir/httpserver.pl $flag $HOSTPORT &";
+ $cmd="$perl $srcdir/httpserver.pl $flag $HTTPPORT &";
system($cmd);
if($verbose) {
print "CMD: $cmd\n";
my $verified;
for(1 .. 10) {
# verify that our server is up and running:
- my $data=`$CURL --silent $HOSTIP:$HOSTPORT/verifiedserver 2>/dev/null`;
+ my $data=`$CURL --silent $HOSTIP:$HTTPPORT/verifiedserver 2>/dev/null`;
if ( $data =~ /WE ROOLZ: (\d+)/ ) {
$pid = 0+$1;
}
my $flag=$debugprotocol?"-v ":"";
- my $cmd="$perl $srcdir/httpsserver.pl $flag -s \"$stunnel\" -d $srcdir -r $HOSTPORT $HTTPSPORT &";
+ my $cmd="$perl $srcdir/httpsserver.pl $flag -s \"$stunnel\" -d $srcdir -r $HTTPPORT $HTTPSPORT &";
system($cmd);
if($verbose) {
print "CMD: $cmd\n";
printf("* libcurl SSL: %s\n", $ssl_version?"ON":"OFF");
printf("* libcurl debug: %s\n", $curl_debug?"ON":"OFF");
printf("* valgrind: %s\n", $valgrind?"ON":"OFF");
+ printf("* HTTP on port: %d\n", $HTTPPORT);
+ printf("* FTP on port: %d\n", $FTPPORT);
+ if($stunnel) {
+ printf("* FTPS on port: %d\n", $FTPSPORT);
+ printf("* HTTPS on port: %d\n", $HTTPSPORT);
+ }
print "***************************************** \n";
}
sub subVariables {
my ($thing) = @_;
$$thing =~ s/%HOSTIP/$HOSTIP/g;
- $$thing =~ s/%HOSTPORT/$HOSTPORT/g;
- $$thing =~ s/%HTTPPORT/$HOSTPORT/g;
+ $$thing =~ s/%HTTPPORT/$HTTPPORT/g;
$$thing =~ s/%HTTPSPORT/$HTTPSPORT/g;
$$thing =~ s/%FTPPORT/$FTPPORT/g;
$$thing =~ s/%FTPSPORT/$FTPSPORT/g;
$$thing =~ s/%PWD/$pwd/g;
}
+sub fixarray {
+ my @in = @_;
+
+ for(@in) {
+ subVariables \$_;
+ }
+ return @in;
+}
+
#######################################################################
# Run a single specified test case
#
}
# curl command to run
- my @curlcmd= getpart("client", "command");
+ my @curlcmd= fixarray ( getpart("client", "command") );
# this is the valid protocol blurb curl should generate
- my @protocol= getpart("verify", "protocol");
+ my @protocol= fixarray ( getpart("verify", "protocol") );
# redirected stdout/stderr to these files
$STDOUT="$LOGDIR/stdout$testnum";
$STDERR="$LOGDIR/stderr$testnum";
# if this section exists, we verify that the stdout contained this:
- my @validstdout = getpart("verify", "stdout");
+ my @validstdout = fixarray ( getpart("verify", "stdout") );
# if this section exists, we verify upload
my @upload = getpart("verify", "upload");
}
}
+$HTTPPORT = $base + 0; # HTTP server port
+$HTTPSPORT = $base + 1; # HTTPS server port
+$FTPPORT = $base + 2; # FTP server port
+$FTPSPORT = $base + 3; # FTPS server port
+
#######################################################################
# Output curl version and host info being tested
#