etlegacy-libs/curl/tests/data/test1078

100 lines
1.6 KiB
Text
Raw Normal View History

2012-06-01 15:23:17 +00:00
<testcase>
<info>
<keywords>
HTTP
HTTP/1.0
HTTP GET
HTTP CONNECT
HTTP proxy
proxytunnel
</keywords>
</info>
#
# Server-side
<reply>
2016-09-16 04:29:17 +00:00
<connect>
HTTP/1.1 200 Mighty fine indeed
Server: test tunnel 2000
</connect>
2012-06-01 15:23:17 +00:00
<data nocheck="yes">
HTTP/1.0 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake
Content-Type: text/html
Funny-head: yesyes
Content-Length: 9
Connection: keep-alive
contents
</data>
</reply>
#
# Client-side
<client>
<server>
http
http-proxy
</server>
<name>
HTTP 1.0 CONNECT with proxytunnel and downgrade GET to HTTP/1.0
</name>
<command>
2016-09-16 04:29:17 +00:00
--proxy1.0 %HOSTIP:%PROXYPORT -p http://%HOSTIP.1078:%HTTPPORT/we/want/that/page/1078 http://%HOSTIP.1078:%HTTPPORT/we/want/that/page/1078
2012-06-01 15:23:17 +00:00
</command>
2019-12-20 11:07:02 +00:00
<features>
proxy
</features>
2012-06-01 15:23:17 +00:00
</client>
#
# Verify data after the test has been "shot"
<verify>
<strip>
^User-Agent:.*
</strip>
<proxy>
2016-09-16 04:29:17 +00:00
CONNECT %HOSTIP.1078:%HTTPPORT HTTP/1.0
Host: %HOSTIP.1078:%HTTPPORT
2012-06-01 15:23:17 +00:00
Proxy-Connection: Keep-Alive
</proxy>
<protocol>
GET /we/want/that/page/1078 HTTP/1.1
2016-09-16 04:29:17 +00:00
Host: %HOSTIP.1078:%HTTPPORT
2012-06-01 15:23:17 +00:00
Accept: */*
GET /we/want/that/page/1078 HTTP/1.0
2016-09-16 04:29:17 +00:00
Host: %HOSTIP.1078:%HTTPPORT
2012-06-01 15:23:17 +00:00
Accept: */*
</protocol>
<stdout>
HTTP/1.1 200 Mighty fine indeed
2016-09-16 04:29:17 +00:00
Server: test tunnel 2000
2012-06-01 15:23:17 +00:00
HTTP/1.0 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake
Content-Type: text/html
Funny-head: yesyes
Content-Length: 9
Connection: keep-alive
contents
HTTP/1.0 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake
Content-Type: text/html
Funny-head: yesyes
Content-Length: 9
Connection: keep-alive
contents
</stdout>
</verify>
</testcase>