etlegacy-libs/curl/tests/data/test287

57 lines
950 B
Text
Raw Normal View History

2012-06-01 15:23:17 +00:00
<testcase>
<info>
<keywords>
HTTP
HTTP CONNECT
HTTP proxy
proxytunnel
</keywords>
</info>
# Server-side
<reply>
2016-09-16 04:29:17 +00:00
<connect nocheck="yes">
2012-06-01 15:23:17 +00:00
HTTP/1.1 405 Method Not Allowed swsclose
And you should ignore this data.
2016-09-16 04:29:17 +00:00
</connect>
2012-06-01 15:23:17 +00:00
</reply>
# Client-side
<client>
<server>
http
</server>
<name>
HTTP proxy CONNECT with custom User-Agent header
</name>
<command>
2016-09-16 04:29:17 +00:00
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"
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>
<protocol>
2016-09-16 04:29:17 +00:00
CONNECT test.remote.example.com.287:%HTTPPORT HTTP/1.1
Host: test.remote.example.com.287:%HTTPPORT
2012-06-01 15:23:17 +00:00
Proxy-Connection: Keep-Alive
User-Agent: looser/2007
</protocol>
# CURLE_RECV_ERROR
<errorcode>
56
</errorcode>
<stdout>
HTTP/1.1 405 Method Not Allowed swsclose
</stdout>
</verify>
</testcase>