1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-24 09:08:49 -05:00

tests: use proxy feature

This makes the tests succeed when using --disable-proxy.

Closes https://github.com/curl/curl/pull/4488
This commit is contained in:
Marcel Raad 2019-10-14 22:29:19 +02:00
parent ee63837732
commit 476eb88171
No known key found for this signature in database
GPG Key ID: FE4D8BC5EE1701DD
133 changed files with 287 additions and 5 deletions

View File

@ -65,6 +65,7 @@ http
<features> <features>
!SSPI !SSPI
crypto crypto
proxy
</features> </features>
<name> <name>
HTTP PUT with Digest auth, resumed upload and modified method, twice HTTP PUT with Digest auth, resumed upload and modified method, twice

View File

@ -88,6 +88,7 @@ http
NTLM NTLM
!SSPI !SSPI
debug debug
proxy
</features> </features>
<name> <name>
HTTP proxy CONNECT auth NTLM with chunked-encoded 407 response HTTP proxy CONNECT auth NTLM with chunked-encoded 407 response

View File

@ -93,6 +93,7 @@ http
NTLM NTLM
!SSPI !SSPI
debug debug
proxy
</features> </features>
<name> <name>
HTTP proxy CONNECT with any proxyauth and proxy offers NTLM and close HTTP proxy CONNECT with any proxyauth and proxy offers NTLM and close

View File

@ -26,6 +26,7 @@ Content-Length: 0
<client> <client>
<features> <features>
ftp ftp
proxy
</features> </features>
<server> <server>
http http

View File

@ -869,6 +869,7 @@ http
<features> <features>
!SSPI !SSPI
crypto crypto
proxy
</features> </features>
<name> <name>
HTTP proxy CONNECT auth Digest, large headers and data HTTP proxy CONNECT auth Digest, large headers and data

View File

@ -874,6 +874,7 @@ http
<features> <features>
!SSPI !SSPI
crypto crypto
proxy
</features> </features>
<name> <name>
HTTP proxy CONNECT auth Digest, large headers and chunked data HTTP proxy CONNECT auth Digest, large headers and chunked data

View File

@ -44,6 +44,7 @@ http
</server> </server>
<features> <features>
ftp ftp
proxy
</features> </features>
<name> <name>
FTP over HTTP proxy with downgrade to HTTP 1.0 FTP over HTTP proxy with downgrade to HTTP 1.0

View File

@ -45,6 +45,9 @@ HTTP 1.0 CONNECT with proxytunnel and downgrade GET to HTTP/1.0
<command> <command>
--proxy1.0 %HOSTIP:%PROXYPORT -p http://%HOSTIP.1078:%HTTPPORT/we/want/that/page/1078 http://%HOSTIP.1078:%HTTPPORT/we/want/that/page/1078 --proxy1.0 %HOSTIP:%PROXYPORT -p http://%HOSTIP.1078:%HTTPPORT/we/want/that/page/1078 http://%HOSTIP.1078:%HTTPPORT/we/want/that/page/1078
</command> </command>
<features>
proxy
</features>
</client> </client>
# #

View File

@ -80,6 +80,9 @@ HTTP, proxy with --anyauth and Location: to new host
<command> <command>
http://first.host.it.is/we/want/that/page/10871000 -x %HOSTIP:%HTTPPORT --user iam:myself --location --anyauth http://first.host.it.is/we/want/that/page/10871000 -x %HOSTIP:%HTTPPORT --user iam:myself --location --anyauth
</command> </command>
<features>
proxy
</features>
</client> </client>
# #

View File

@ -81,6 +81,9 @@ HTTP, proxy with --anyauth and Location: to new host using location-trusted
<command> <command>
http://first.host.it.is/we/want/that/page/10881000 -x %HOSTIP:%HTTPPORT --user iam:myself --location-trusted --anyauth http://first.host.it.is/we/want/that/page/10881000 -x %HOSTIP:%HTTPPORT --user iam:myself --location-trusted --anyauth
</command> </command>
<features>
proxy
</features>
</client> </client>
# #

View File

@ -30,6 +30,7 @@ http
</server> </server>
<features> <features>
ftp ftp
proxy
</features> </features>
<name> <name>
FTP with type=i over HTTP proxy FTP with type=i over HTTP proxy

View File

@ -29,6 +29,7 @@ http
<features> <features>
http http
ftp ftp
proxy
</features> </features>
<name> <name>
FTP RETR twice over proxy confirming persistent connection FTP RETR twice over proxy confirming persistent connection

View File

@ -61,6 +61,9 @@ HTTP cookie expiry date at Jan 1 00:00:00 GMT 1970
<command> <command>
http://%HOSTIP:%HTTPPORT/want/1104 -L -x %HOSTIP:%HTTPPORT -c log/cookies1104.jar http://%HOSTIP:%HTTPPORT/want/1104 -L -x %HOSTIP:%HTTPPORT -c log/cookies1104.jar
</command> </command>
<features>
proxy
</features>
</client> </client>
# Verify data after the test has been "shot" # Verify data after the test has been "shot"

View File

@ -24,6 +24,7 @@ hello
<client> <client>
<features> <features>
ftp ftp
proxy
</features> </features>
<server> <server>
http http

View File

@ -33,6 +33,7 @@ boo
<client> <client>
<features> <features>
PSL PSL
proxy
</features> </features>
<server> <server>
http http

View File

@ -47,6 +47,9 @@ HTTP redirect to http:/// (three slashes!)
<command> <command>
%HOSTIP:%HTTPPORT/want/1141 -L -x http://%HOSTIP:%HTTPPORT %HOSTIP:%HTTPPORT/want/1141 -L -x http://%HOSTIP:%HTTPPORT
</command> </command>
<features>
proxy
</features>
</client> </client>
# Verify data after the test has been "shot" # Verify data after the test has been "shot"

View File

@ -42,6 +42,9 @@ HTTP redirect to http://// (four slashes!)
<command> <command>
%HOSTIP:%HTTPPORT/want/1142 -L -x http://%HOSTIP:%HTTPPORT %HOSTIP:%HTTPPORT/want/1142 -L -x http://%HOSTIP:%HTTPPORT
</command> </command>
<features>
proxy
</features>
</client> </client>
# Verify data after the test has been "shot" # Verify data after the test has been "shot"

View File

@ -32,6 +32,9 @@ HTTP proxy with URLs using different ports
<command> <command>
--proxy http://%HOSTIP:%HTTPPORT http://test.remote.example.com.1150:150/path http://test.remote.example.com.1150:1234/path/ --proxy http://%HOSTIP:%HTTPPORT http://test.remote.example.com.1150:150/path http://test.remote.example.com.1150:1234/path/
</command> </command>
<features>
proxy
</features>
</client> </client>
# Verify data after the test has been "shot" # Verify data after the test has been "shot"

View File

@ -35,6 +35,9 @@ HTTP with proxy and host-only URL
<command> <command>
-x %HOSTIP:%HTTPPORT we.want.that.site.com.1213 -x %HOSTIP:%HTTPPORT we.want.that.site.com.1213
</command> </command>
<features>
proxy
</features>
</client> </client>
# Verify data after the test has been "shot" # Verify data after the test has been "shot"

View File

@ -35,6 +35,9 @@ HTTP with proxy and URL with ? and no slash separator
<command> <command>
-x %HOSTIP:%HTTPPORT http://we.want.that.site.com.1214?moo=foo -x %HOSTIP:%HTTPPORT http://we.want.that.site.com.1214?moo=foo
</command> </command>
<features>
proxy
</features>
</client> </client>
# Verify data after the test has been "shot" # Verify data after the test has been "shot"

View File

@ -60,6 +60,7 @@ Finally, this is the real page!
NTLM NTLM
!SSPI !SSPI
debug debug
proxy
</features> </features>
<server> <server>
http http

View File

@ -39,6 +39,9 @@ example.fake FALSE /b FALSE 0 moo1 indeed
example.fake FALSE /c FALSE 2139150993 moo2 indeed example.fake FALSE /c FALSE 2139150993 moo2 indeed
example.fake TRUE /c FALSE 2139150993 moo3 indeed example.fake TRUE /c FALSE 2139150993 moo3 indeed
</file> </file>
<features>
proxy
</features>
</client> </client>
# Verify data after the test has been "shot" # Verify data after the test has been "shot"

View File

@ -32,6 +32,9 @@ HTTP cookies and domains with same prefix
<command> <command>
http://example.fake/c/1218 http://example.fake/c/1218 http://bexample.fake/c/1218 -b nonexisting -x %HOSTIP:%HTTPPORT http://example.fake/c/1218 http://example.fake/c/1218 http://bexample.fake/c/1218 -b nonexisting -x %HOSTIP:%HTTPPORT
</command> </command>
<features>
proxy
</features>
</client> </client>
# Verify data after the test has been "shot" # Verify data after the test has been "shot"

View File

@ -31,6 +31,9 @@ HTTP cookie path match
<command> <command>
http://example.fake/hoge/1228 http://example.fake/hogege/ -b nonexisting -x %HOSTIP:%HTTPPORT http://example.fake/hoge/1228 http://example.fake/hogege/ -b nonexisting -x %HOSTIP:%HTTPPORT
</command> </command>
<features>
proxy
</features>
</client> </client>
# Verify data after the test has been "shot" # Verify data after the test has been "shot"

View File

@ -43,6 +43,7 @@ mooooooo
<client> <client>
<features> <features>
ipv6 ipv6
proxy
</features> </features>
<server> <server>
http-proxy http-proxy

View File

@ -41,6 +41,9 @@ HTTP URL with dotdot removal from path using an HTTP proxy
<command> <command>
--proxy http://%HOSTIP:%HTTPPORT http://test.remote.haxx.se.1232:8990/../../hej/but/who/../1232?stupid=me/../1232#soo/../1232 http://test.remote.haxx.se.1232:8990/../../hej/but/who/../12320001#/../12320001 --proxy http://%HOSTIP:%HTTPPORT http://test.remote.haxx.se.1232:8990/../../hej/but/who/../1232?stupid=me/../1232#soo/../1232 http://test.remote.haxx.se.1232:8990/../../hej/but/who/../12320001#/../12320001
</command> </command>
<features>
proxy
</features>
</client> </client>
# #

View File

@ -40,6 +40,9 @@ HTTP _without_ dotdot removal
<command> <command>
--path-as-is --proxy http://%HOSTIP:%HTTPPORT http://test.remote.haxx.se.1241:8990/../../hej/but/who/../1241?stupid=me/../1241#soo/../1241 http://test.remote.haxx.se.1241:8990/../../hej/but/who/../12410001#/../12410001 --path-as-is --proxy http://%HOSTIP:%HTTPPORT http://test.remote.haxx.se.1241:8990/../../hej/but/who/../1241?stupid=me/../1241#soo/../1241 http://test.remote.haxx.se.1241:8990/../../hej/but/who/../12410001#/../12410001
</command> </command>
<features>
proxy
</features>
</client> </client>
# #

View File

@ -40,6 +40,9 @@ URL with '#' at end of host name instead of '/'
<command> <command>
--proxy http://%HOSTIP:%HTTPPORT http://test.remote.haxx.se.1246:%HTTPPORT#@127.0.0.1/tricked.html no-scheme-url.com.1246:%HTTPPORT#@127.127.127.127/again.html --proxy http://%HOSTIP:%HTTPPORT http://test.remote.haxx.se.1246:%HTTPPORT#@127.0.0.1/tricked.html no-scheme-url.com.1246:%HTTPPORT#@127.127.127.127/again.html
</command> </command>
<features>
proxy
</features>
</client> </client>
# #

View File

@ -35,6 +35,9 @@ NO_PROXY=example.com
<command> <command>
http://somewhere.example.com/1253 --proxy http://%HOSTIP:%HTTPPORT --noproxy %HOSTIP http://somewhere.example.com/1253 --proxy http://%HOSTIP:%HTTPPORT --noproxy %HOSTIP
</command> </command>
<features>
proxy
</features>
</client> </client>
# Verify data after the test has been "shot" # Verify data after the test has been "shot"

View File

@ -35,6 +35,9 @@ NO_PROXY=example.com
<command> <command>
http://somewhere.example.com/1254 --proxy http://%HOSTIP:%HTTPPORT --noproxy "" http://somewhere.example.com/1254 --proxy http://%HOSTIP:%HTTPPORT --noproxy ""
</command> </command>
<features>
proxy
</features>
</client> </client>
# Verify data after the test has been "shot" # Verify data after the test has been "shot"

View File

@ -36,6 +36,9 @@ NO_PROXY=example.com
<command> <command>
http://somewhere.example.com/1256 --noproxy %HOSTIP http://somewhere.example.com/1256 --noproxy %HOSTIP
</command> </command>
<features>
proxy
</features>
</client> </client>
# Verify data after the test has been "shot" # Verify data after the test has been "shot"

View File

@ -36,6 +36,9 @@ NO_PROXY=example.com
<command> <command>
http://somewhere.example.com/1257 --noproxy "" http://somewhere.example.com/1257 --noproxy ""
</command> </command>
<features>
proxy
</features>
</client> </client>
# Verify data after the test has been "shot" # Verify data after the test has been "shot"

View File

@ -60,6 +60,9 @@ HTTP over proxy-tunnel ignore TE and CL in CONNECT 2xx responses
<command> <command>
-v --proxytunnel -x %HOSTIP:%PROXYPORT http://test.1287:%HTTPPORT/we/want/that/page/1287 -v --proxytunnel -x %HOSTIP:%PROXYPORT http://test.1287:%HTTPPORT/we/want/that/page/1287
</command> </command>
<features>
proxy
</features>
</client> </client>
# #

View File

@ -44,6 +44,9 @@ Suppress proxy CONNECT response headers
<command> <command>
--proxytunnel --suppress-connect-headers --dump-header - --include --write-out "\nCONNECT CODE: %{http_connect}\nRECEIVED HEADER BYTE TOTAL: %{size_header}\n" --proxy %HOSTIP:%PROXYPORT http://%HOSTIP.1288:%HTTPPORT/we/want/that/page/1288 --proxytunnel --suppress-connect-headers --dump-header - --include --write-out "\nCONNECT CODE: %{http_connect}\nRECEIVED HEADER BYTE TOTAL: %{size_header}\n" --proxy %HOSTIP:%PROXYPORT http://%HOSTIP.1288:%HTTPPORT/we/want/that/page/1288
</command> </command>
<features>
proxy
</features>
</client> </client>
# #

View File

@ -56,6 +56,9 @@ HTTP Location: following a // prefixed url
<command> <command>
http://firstplace.example.com/want/1314 -L -x http://%HOSTIP:%HTTPPORT http://firstplace.example.com/want/1314 -L -x http://%HOSTIP:%HTTPPORT
</command> </command>
<features>
proxy
</features>
</client> </client>
# Verify data after the test has been "shot" # Verify data after the test has been "shot"

View File

@ -50,6 +50,7 @@ http-proxy
</server> </server>
<features> <features>
http http
proxy
</features> </features>
<name> <name>
POP3 fetch tunneled through HTTP proxy POP3 fetch tunneled through HTTP proxy

View File

@ -27,6 +27,7 @@ http-proxy
</server> </server>
<features> <features>
http http
proxy
</features> </features>
<name> <name>
SMTP send tunneled through HTTP proxy SMTP send tunneled through HTTP proxy

View File

@ -46,6 +46,7 @@ http-proxy
</server> </server>
<features> <features>
http http
proxy
</features> </features>
<name> <name>
IMAP FETCH tunneled through HTTP proxy IMAP FETCH tunneled through HTTP proxy

View File

@ -17,6 +17,9 @@ http
<command> <command>
http://%HOSTIP:%HTTPPORT/we/want/that/page/1329 -x "/server" http://%HOSTIP:%HTTPPORT/we/want/that/page/1329 -x "/server"
</command> </command>
<features>
proxy
</features>
</client> </client>
# #

View File

@ -64,6 +64,9 @@ HTTP --proxy-anyauth and 407 with cookies
<command> <command>
-U myname:mypassword -x %HOSTIP:%HTTPPORT http://z.x.com/1331 --proxy-anyauth -c log/dump1331 -U myname:mypassword -x %HOSTIP:%HTTPPORT http://z.x.com/1331 --proxy-anyauth -c log/dump1331
</command> </command>
<features>
proxy
</features>
</client> </client>
# Verify data after the test has been "shot" # Verify data after the test has been "shot"

View File

@ -46,6 +46,9 @@ TZ=GMT
<command> <command>
http://example.com/we/want/1415 -b none -c log/jar1415.txt -x %HOSTIP:%HTTPPORT http://example.com/we/want/1415 -b none -c log/jar1415.txt -x %HOSTIP:%HTTPPORT
</command> </command>
<features>
proxy
</features>
</client> </client>
# Verify data after the test has been "shot" # Verify data after the test has been "shot"

View File

@ -35,6 +35,9 @@ Re-using HTTP proxy connection for two different host names
<command> <command>
--proxy http://%HOSTIP:%HTTPPORT http://test.remote.haxx.se.1421:8990/ http://different.remote.haxx.se.1421:8990 --proxy http://%HOSTIP:%HTTPPORT http://test.remote.haxx.se.1421:8990/ http://different.remote.haxx.se.1421:8990
</command> </command>
<features>
proxy
</features>
</client> </client>
# #

View File

@ -52,6 +52,9 @@ HTTP over proxy-tunnel with --proxy-header and --header
<command> <command>
http://test.1428:%HTTPPORT/we/want/that/page/1428 -p -x %HOSTIP:%PROXYPORT --user 'iam:my:;self' --header "header-type: server" --proxy-header "header-type: proxy" http://test.1428:%HTTPPORT/we/want/that/page/1428 -p -x %HOSTIP:%PROXYPORT --user 'iam:my:;self' --header "header-type: server" --proxy-header "header-type: proxy"
</command> </command>
<features>
proxy
</features>
</client> </client>
# #

View File

@ -18,6 +18,7 @@ none
</server> </server>
<features> <features>
http http
proxy
</features> </features>
<name> <name>
Provide illegal proxy name Provide illegal proxy name

View File

@ -39,6 +39,9 @@ HTTP GET when PROXY Protocol enabled
<command> <command>
http://%HOSTIP:%HTTPPORT/1455 --haproxy-protocol http://%HOSTIP:%HTTPPORT/1455 --haproxy-protocol
</command> </command>
<features>
proxy
</features>
</client> </client>
# #

View File

@ -42,6 +42,9 @@ HTTP-IPv6 GET with PROXY protocol
<command> <command>
-g "http://%HOST6IP:%HTTP6PORT/1456" --local-port 44444 --haproxy-protocol -g "http://%HOST6IP:%HTTP6PORT/1456" --local-port 44444 --haproxy-protocol
</command> </command>
<features>
proxy
</features>
</client> </client>
# #

View File

@ -53,7 +53,9 @@ http-proxy
<tool> <tool>
lib1509 lib1509
</tool> </tool>
<features>
proxy
</features>
<name> <name>
simple multi http:// through proxytunnel with authentication info simple multi http:// through proxytunnel with authentication info
</name> </name>

View File

@ -49,6 +49,9 @@ CURLOPT_PROXYHEADER is ignored CURLHEADER_UNIFIED
<command> <command>
http://the.old.moo.1525:%HTTPPORT/1525 %HOSTIP:%PROXYPORT http://the.old.moo.1525:%HTTPPORT/1525 %HOSTIP:%PROXYPORT
</command> </command>
<features>
proxy
</features>
</client> </client>
# Verify data after the test has been "shot" # Verify data after the test has been "shot"

View File

@ -51,6 +51,9 @@ CURLOPT_PROXYHEADER: separate host/proxy headers
<command> <command>
http://the.old.moo.1526:%HTTPPORT/1526 %HOSTIP:%PROXYPORT http://the.old.moo.1526:%HTTPPORT/1526 %HOSTIP:%PROXYPORT
</command> </command>
<features>
proxy
</features>
</client> </client>
# Verify data after the test has been "shot" # Verify data after the test has been "shot"

View File

@ -50,6 +50,9 @@ Check same headers are generated with CURLOPT_HEADEROPT == CURLHEADER_UNIFIED
<command> <command>
http://the.old.moo.1527:%HTTPPORT/1527 %HOSTIP:%PROXYPORT http://the.old.moo.1527:%HTTPPORT/1527 %HOSTIP:%PROXYPORT
</command> </command>
<features>
proxy
</features>
</client> </client>
# Verify data after the test has been "shot" # Verify data after the test has been "shot"

View File

@ -43,6 +43,9 @@ Separately specified proxy/server headers sent in a proxy GET
<command> <command>
http://the.old.moo:%HTTPPORT/1528 %HOSTIP:%PROXYPORT http://the.old.moo:%HTTPPORT/1528 %HOSTIP:%PROXYPORT
</command> </command>
<features>
proxy
</features>
</client> </client>
# Verify data after the test has been "shot" # Verify data after the test has been "shot"

View File

@ -31,6 +31,9 @@ HTTP request-injection in URL sent over proxy
<command> <command>
"http://the.old.moo:%HTTPPORT/1529" %HOSTIP:%PROXYPORT "http://the.old.moo:%HTTPPORT/1529" %HOSTIP:%PROXYPORT
</command> </command>
<features>
proxy
</features>
</client> </client>
# it should be detected and an error should be reported # it should be detected and an error should be reported

View File

@ -33,6 +33,9 @@ HTTP with proxy authorization
<command> <command>
-U fake@user:loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong -x %HOSTIP:%HTTPPORT http://we.want.that.site.com/16 -U fake@user:loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong -x %HOSTIP:%HTTPPORT http://we.want.that.site.com/16
</command> </command>
<features>
proxy
</features>
</client> </client>
# Verify data after the test has been "shot" # Verify data after the test has been "shot"

View File

@ -28,6 +28,7 @@ isn't because there's no Proxy-Authorization: NTLM header
<features> <features>
NTLM NTLM
!SSPI !SSPI
proxy
</features> </features>
<server> <server>
http http

View File

@ -29,6 +29,7 @@ http
</server> </server>
<features> <features>
idn idn
proxy
</features> </features>
<setenv> <setenv>
LC_ALL= LC_ALL=

View File

@ -45,6 +45,7 @@ http
<features> <features>
!SSPI !SSPI
crypto crypto
proxy
</features> </features>
<name> <name>
HTTP with proxy-requiring-Basic to site-requiring-Digest HTTP with proxy-requiring-Basic to site-requiring-Digest

View File

@ -59,6 +59,7 @@ http
<features> <features>
!SSPI !SSPI
crypto crypto
proxy
</features> </features>
<name> <name>
HTTP with proxy-requiring-Digest to site-requiring-Digest HTTP with proxy-requiring-Digest to site-requiring-Digest

View File

@ -79,6 +79,7 @@ http
NTLM NTLM
!SSPI !SSPI
debug debug
proxy
</features> </features>
<name> <name>
HTTP with proxy-requiring-NTLM to site-requiring-Digest HTTP with proxy-requiring-NTLM to site-requiring-Digest

View File

@ -20,6 +20,7 @@ http
<features> <features>
NTLM NTLM
!SSPI !SSPI
proxy
</features> </features>
<name> <name>
HTTP POST with --proxy-ntlm and no SSL with no response HTTP POST with --proxy-ntlm and no SSL with no response

View File

@ -33,6 +33,9 @@ HTTP, get cookie with dot prefixed full domain
<command> <command>
-c log/jar171 -x %HOSTIP:%HTTPPORT http://z.x.com/171 -c log/jar171 -x %HOSTIP:%HTTPPORT http://z.x.com/171
</command> </command>
<features>
proxy
</features>
</client> </client>
# Verify data after the test has been "shot" # Verify data after the test has been "shot"

View File

@ -38,6 +38,9 @@ supertrooper.fake FALSE /a FALSE 2139150993 mooo indeed
supertrooper.fake FALSE /b FALSE 0 moo1 indeed supertrooper.fake FALSE /b FALSE 0 moo1 indeed
supertrooper.fake FALSE /c FALSE 2139150993 moo2 indeed supertrooper.fake FALSE /c FALSE 2139150993 moo2 indeed
</file> </file>
<features>
proxy
</features>
</client> </client>
# Verify data after the test has been "shot" # Verify data after the test has been "shot"

View File

@ -30,6 +30,9 @@ HTTP GET two URLs over a single proxy with persistent connection
<command> <command>
http://deathstar.another.galaxy/183 http://a.galaxy.far.far.away/183 --proxy http://%HOSTIP:%HTTPPORT http://deathstar.another.galaxy/183 http://a.galaxy.far.far.away/183 --proxy http://%HOSTIP:%HTTPPORT
</command> </command>
<features>
proxy
</features>
</client> </client>
# Verify data after the test has been "shot" # Verify data after the test has been "shot"

View File

@ -50,6 +50,9 @@ HTTP replace Host: when following Location: to new host
<command> <command>
http://deathstar.another.galaxy/184 -L -H "Host: another.visitor.stay.a.while.stay.foreeeeeever" --proxy http://%HOSTIP:%HTTPPORT http://deathstar.another.galaxy/184 -L -H "Host: another.visitor.stay.a.while.stay.foreeeeeever" --proxy http://%HOSTIP:%HTTPPORT
</command> </command>
<features>
proxy
</features>
</client> </client>
# Verify data after the test has been "shot" # Verify data after the test has been "shot"

View File

@ -50,6 +50,9 @@ HTTP replace Host: when following Location: on the same host
<command> <command>
http://deathstar.another.galaxy/185 -L -H "Host: another.visitor.stay.a.while.stay.foreeeeeever" --proxy http://%HOSTIP:%HTTPPORT http://deathstar.another.galaxy/185 -L -H "Host: another.visitor.stay.a.while.stay.foreeeeeever" --proxy http://%HOSTIP:%HTTPPORT
</command> </command>
<features>
proxy
</features>
</client> </client>
# Verify data after the test has been "shot" # Verify data after the test has been "shot"

View File

@ -53,6 +53,9 @@ HTTP CONNECT with 204 response
<command> <command>
http://test.1904:%HTTPPORT/we/want/that/page/1904 -p --proxy %HOSTIP:%PROXYPORT http://test.1904:%HTTPPORT/we/want/that/page/1904 -p --proxy %HOSTIP:%PROXYPORT
</command> </command>
<features>
proxy
</features>
</client> </client>
# #

View File

@ -53,6 +53,9 @@ Connect to specific host via HTTP proxy (switch to tunnel mode automatically)
<command> <command>
http://www.example.com.2050/2050 --connect-to ::connect.example.com.2050:%HTTPPORT -x %HOSTIP:%PROXYPORT http://www.example.com.2050/2050 --connect-to ::connect.example.com.2050:%HTTPPORT -x %HOSTIP:%PROXYPORT
</command> </command>
<features>
proxy
</features>
</client> </client>
# #

View File

@ -51,7 +51,9 @@ socks5
<name> <name>
Connect to specific host via SOCKS proxy and HTTP proxy (switch to tunnel mode automatically) Connect to specific host via SOCKS proxy and HTTP proxy (switch to tunnel mode automatically)
</name> </name>
<features>
proxy
</features>
<command> <command>
http://www.example.com.2055/2055 --connect-to ::connect.example.com.2055:%HTTPPORT -x %HOSTIP:%PROXYPORT --preproxy socks5://%HOSTIP:%SOCKSPORT http://www.example.com.2055/2055 --connect-to ::connect.example.com.2055:%HTTPPORT -x %HOSTIP:%PROXYPORT --preproxy socks5://%HOSTIP:%SOCKSPORT
</command> </command>

View File

@ -66,6 +66,7 @@ http
<features> <features>
!SSPI !SSPI
crypto crypto
proxy
</features> </features>
<name> <name>
HTTP POST --digest with PUT, resumed upload, modified method and SHA-256 HTTP POST --digest with PUT, resumed upload, modified method and SHA-256

View File

@ -66,6 +66,7 @@ http
<features> <features>
!SSPI !SSPI
crypto crypto
proxy
</features> </features>
<name> <name>
HTTP POST --digest with PUT, resumed upload, modified method, SHA-512-256 and userhash=true HTTP POST --digest with PUT, resumed upload, modified method, SHA-512-256 and userhash=true

View File

@ -73,6 +73,7 @@ http
<features> <features>
!SSPI !SSPI
crypto crypto
proxy
</features> </features>
<name> <name>
HTTP proxy CONNECT auth Digest HTTP proxy CONNECT auth Digest

View File

@ -66,6 +66,7 @@ http
<features> <features>
!SSPI !SSPI
crypto crypto
proxy
</features> </features>
<name> <name>
HTTP POST --digest with PUT, resumed upload, modified method, SHA-512-256 and userhash=false HTTP POST --digest with PUT, resumed upload, modified method, SHA-512-256 and userhash=false

View File

@ -27,6 +27,7 @@ http
</server> </server>
<features> <features>
ftp ftp
proxy
</features> </features>
<name> <name>
HTTP PUT to a FTP URL with username+password - over HTTP proxy HTTP PUT to a FTP URL with username+password - over HTTP proxy

View File

@ -79,6 +79,7 @@ http
NTLM NTLM
!SSPI !SSPI
debug debug
proxy
</features> </features>
<name> <name>
HTTP proxy CONNECT auth NTLM HTTP proxy CONNECT auth NTLM

View File

@ -79,6 +79,7 @@ http
NTLM NTLM
!SSPI !SSPI
debug debug
proxy
</features> </features>
<name> <name>
HTTP 1.0 proxy CONNECT auth NTLM and then POST HTTP 1.0 proxy CONNECT auth NTLM and then POST

View File

@ -34,6 +34,9 @@ HTTP proxy CONNECT to proxy returning 405
<command> <command>
http://test.remote.example.com.217:%HTTPPORT/path/2170002 --proxy http://%HOSTIP:%HTTPPORT --proxytunnel -w "%{http_code} %{http_connect}\n" http://test.remote.example.com.217:%HTTPPORT/path/2170002 --proxy http://%HOSTIP:%HTTPPORT --proxytunnel -w "%{http_code} %{http_connect}\n"
</command> </command>
<features>
proxy
</features>
</client> </client>
# Verify data after the test has been "shot" # Verify data after the test has been "shot"

View File

@ -18,6 +18,7 @@ none
</server> </server>
<features> <features>
http http
proxy
</features> </features>
<name> <name>
try using proxy with unsupported scheme try using proxy with unsupported scheme

View File

@ -67,6 +67,9 @@ HTTP, proxy, site+proxy auth and Location: to new host
<command> <command>
http://first.host.it.is/we/want/that/page/233 -x %HOSTIP:%HTTPPORT --user iam:myself --proxy-user testing:this --location http://first.host.it.is/we/want/that/page/233 -x %HOSTIP:%HTTPPORT --user iam:myself --proxy-user testing:this --location
</command> </command>
<features>
proxy
</features>
</client> </client>
# #

View File

@ -69,6 +69,9 @@ HTTP, proxy, site+proxy auth and Location: to new host using location-trusted
<command> <command>
http://first.host.it.is/we/want/that/page/234 -x %HOSTIP:%HTTPPORT --user iam:myself --proxy-user testing:this --location-trusted http://first.host.it.is/we/want/that/page/234 -x %HOSTIP:%HTTPPORT --user iam:myself --proxy-user testing:this --location-trusted
</command> </command>
<features>
proxy
</features>
</client> </client>
# #

View File

@ -54,6 +54,7 @@ http
NTLM NTLM
!SSPI !SSPI
debug debug
proxy
</features> </features>
<name> <name>
HTTP proxy-auth NTLM and then POST HTTP proxy-auth NTLM and then POST

View File

@ -75,6 +75,7 @@ http
NTLM NTLM
!SSPI !SSPI
debug debug
proxy
</features> </features>
<name> <name>
HTTP POST with --proxy-anyauth, picking NTLM HTTP POST with --proxy-anyauth, picking NTLM

View File

@ -35,6 +35,9 @@ HTTP resume request over proxy with auth without server supporting it
This text is here to simulate a partly downloaded file to resume This text is here to simulate a partly downloaded file to resume
download on. download on.
</file> </file>
<features>
proxy
</features>
</client> </client>
# Verify data after the test has been "shot" # Verify data after the test has been "shot"

View File

@ -73,7 +73,9 @@ HTTP Location: following with --netrc-optional
<command> <command>
http://supersite.com/want/257 -L -x http://%HOSTIP:%HTTPPORT --netrc-optional --netrc-file log/netrc257 http://supersite.com/want/257 -L -x http://%HOSTIP:%HTTPPORT --netrc-optional --netrc-file log/netrc257
</command> </command>
<features>
proxy
</features>
# netrc auth for two out of three sites: # netrc auth for two out of three sites:
<file name="log/netrc257"> <file name="log/netrc257">
machine supersite.com login user1 password passwd1 machine supersite.com login user1 password passwd1

View File

@ -58,6 +58,7 @@ http
<features> <features>
!SSPI !SSPI
crypto crypto
proxy
</features> </features>
<name> <name>
HTTP POST multipart without Expect: header using proxy anyauth (Digest) HTTP POST multipart without Expect: header using proxy anyauth (Digest)

View File

@ -54,6 +54,7 @@ http
<features> <features>
!SSPI !SSPI
crypto crypto
proxy
</features> </features>
<name> <name>
HTTP POST multipart with Expect: header using proxy anyauth (Digest) HTTP POST multipart with Expect: header using proxy anyauth (Digest)

View File

@ -25,6 +25,7 @@ hello
<client> <client>
<features> <features>
ipv6 ipv6
proxy
</features> </features>
<server> <server>
http-ipv6 http-ipv6

View File

@ -30,6 +30,9 @@ HTTP with proxy string including http:// and user+password
<command> <command>
http://we.want.that.site.com/264 -x http://f%61ke:user@%HOSTIP:%HTTPPORT http://we.want.that.site.com/264 -x http://f%61ke:user@%HOSTIP:%HTTPPORT
</command> </command>
<features>
proxy
</features>
</client> </client>
# Verify data after the test has been "shot" # Verify data after the test has been "shot"

View File

@ -80,6 +80,7 @@ http
NTLM NTLM
!SSPI !SSPI
debug debug
proxy
</features> </features>
<name> <name>
HTTP proxy CONNECT auth NTLM and then POST, response-body in the 407 HTTP proxy CONNECT auth NTLM and then POST, response-body in the 407

View File

@ -56,6 +56,9 @@ HTTP CONNECT with proxytunnel getting two URLs from the same host
<command> <command>
http://remotesite.com.275:%HTTPPORT/we/want/that/page/275 -p -x %HOSTIP:%PROXYPORT --user iam:myself --proxy-user youare:yourself http://remotesite.com.275:%HTTPPORT/we/want/that/page/275 http://remotesite.com.275:%HTTPPORT/we/want/that/page/275 -p -x %HOSTIP:%PROXYPORT --user iam:myself --proxy-user youare:yourself http://remotesite.com.275:%HTTPPORT/we/want/that/page/275
</command> </command>
<features>
proxy
</features>
</client> </client>
# #

View File

@ -30,6 +30,9 @@ HTTP with proxy string including http:// and user+empty password
<command> <command>
http://we.want.that.site.com/278 -x http://f%61ke:@%HOSTIP:%HTTPPORT http://we.want.that.site.com/278 -x http://f%61ke:@%HOSTIP:%HTTPPORT
</command> </command>
<features>
proxy
</features>
</client> </client>
# Verify data after the test has been "shot" # Verify data after the test has been "shot"

View File

@ -31,6 +31,9 @@ HTTP with proxy string including http:// and user only
<command> <command>
http://we.want.that.site.com/279 -x http://f%61ke@%HOSTIP:%HTTPPORT http://we.want.that.site.com/279 -x http://f%61ke@%HOSTIP:%HTTPPORT
</command> </command>
<features>
proxy
</features>
</client> </client>
# Verify data after the test has been "shot" # Verify data after the test has been "shot"

View File

@ -30,6 +30,9 @@ HTTP proxy CONNECT with custom User-Agent header
<command> <command>
http://test.remote.example.com.287:%HTTPPORT/path/287 -H "User-Agent: looser/2015" --proxy http://%HOSTIP:%HTTPPORT --proxytunnel --proxy-header "User-Agent: looser/2007" http://test.remote.example.com.287:%HTTPPORT/path/287 -H "User-Agent: looser/2015" --proxy http://%HOSTIP:%HTTPPORT --proxytunnel --proxy-header "User-Agent: looser/2007"
</command> </command>
<features>
proxy
</features>
</client> </client>
# Verify data after the test has been "shot" # Verify data after the test has been "shot"

View File

@ -27,6 +27,7 @@ http
</server> </server>
<features> <features>
ftp ftp
proxy
</features> </features>
<name> <name>
FTP over HTTP proxy with user:pass not in url FTP over HTTP proxy with user:pass not in url

View File

@ -67,6 +67,9 @@ HTTP with custom Authorization: and redirect to new host
<command> <command>
http://first.host.it.is/we/want/that/page/317 -x %HOSTIP:%HTTPPORT -H "Authorization: s3cr3t" --proxy-user testing:this --location http://first.host.it.is/we/want/that/page/317 -x %HOSTIP:%HTTPPORT -H "Authorization: s3cr3t" --proxy-user testing:this --location
</command> </command>
<features>
proxy
</features>
</client> </client>
# #

View File

@ -67,6 +67,9 @@ HTTP with custom Authorization: and redirect to new host
<command> <command>
http://first.host.it.is/we/want/that/page/318 -x %HOSTIP:%HTTPPORT -H "Authorization: s3cr3t" --proxy-user testing:this --location-trusted http://first.host.it.is/we/want/that/page/318 -x %HOSTIP:%HTTPPORT -H "Authorization: s3cr3t" --proxy-user testing:this --location-trusted
</command> </command>
<features>
proxy
</features>
</client> </client>
# #

View File

@ -65,6 +65,9 @@ HTTP with custom Cookie: and redirect to new host
<command> <command>
http://first.host.it.is/we/want/that/page/317 -x %HOSTIP:%HTTPPORT -H "Cookie: test=yes" --location http://first.host.it.is/we/want/that/page/317 -x %HOSTIP:%HTTPPORT -H "Cookie: test=yes" --location
</command> </command>
<features>
proxy
</features>
</client> </client>
# #

View File

@ -41,6 +41,9 @@ HTTP with cookie using host name 'moo'
<command> <command>
-x http://%HOSTIP:%HTTPPORT http://moo/we/want/331 -b none http://moo/we/want/3310002 -x http://%HOSTIP:%HTTPPORT http://moo/we/want/331 -b none http://moo/we/want/3310002
</command> </command>
<features>
proxy
</features>
</client> </client>
# Verify data after the test has been "shot" # Verify data after the test has been "shot"

View File

@ -61,6 +61,7 @@ http
<features> <features>
!SSPI !SSPI
crypto crypto
proxy
</features> </features>
<name> <name>
HTTP with proxy Digest and site Digest with creds in URLs HTTP with proxy Digest and site Digest with creds in URLs

View File

@ -56,6 +56,9 @@ HTTP Location: following over HTTP proxy
<command> <command>
http://%HOSTIP:%HTTPPORT/want/43 -L -x %HOSTIP:%HTTPPORT http://%HOSTIP:%HTTPPORT/want/43 -L -x %HOSTIP:%HTTPPORT
</command> </command>
<features>
proxy
</features>
</client> </client>
# Verify data after the test has been "shot" # Verify data after the test has been "shot"

View File

@ -31,6 +31,9 @@ HTTP over proxy
<command> <command>
http://%HOSTIP:%HTTPPORT/we/want/that/page/5#5 -x %HOSTIP:%HTTPPORT http://%HOSTIP:%HTTPPORT/we/want/that/page/5#5 -x %HOSTIP:%HTTPPORT
</command> </command>
<features>
proxy
</features>
</client> </client>
# #

View File

@ -50,7 +50,9 @@ http-proxy
<tool> <tool>
lib503 lib503
</tool> </tool>
<features>
proxy
</features>
<name> <name>
simple multi http:// through proxytunnel with authentication info simple multi http:// through proxytunnel with authentication info
</name> </name>

Some files were not shown because too many files have changed in this diff Show More