master-server/deps/curl/tests/data/test1945
2023-12-11 20:30:44 -05:00

77 lines
1.3 KiB
Plaintext

<testcase>
<info>
<keywords>
curl_easy_header
CONNECT
</keywords>
</info>
# Server-side
<reply>
<data nocheck="yes">
HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test with trailing space
Content-Type: text/html
Content-Length: 0
Set-Cookie: onecookie=data;
Set-Cookie: secondcookie=2data;
Set-Cookie: cookie3=data3;
Location: /%TESTNUMBER0002
</data>
<connect>
HTTP/1.1 200 Sure go ahead
Server: from the connect
Silly-thing: yes yes
</connect>
</reply>
# Client-side
<client>
<features>
proxy
SSL
headers-api
</features>
<server>
http
http-proxy
</server>
<name>
curl_easy_nextheader with server + CONNECT
</name>
<tool>
lib%TESTNUMBER
</tool>
<command>
http://hello:%HTTPPORT/%TESTNUMBER %HOSTIP:%PROXYPORT
</command>
</client>
# Verify data after the test has been "shot"
<verify>
<proxy>
CONNECT hello:%HTTPPORT HTTP/1.1
Host: hello:%HTTPPORT
Proxy-Connection: Keep-Alive
</proxy>
<stdout>
Server == from the connect (0/2)
Silly-thing == yes yes (0/1)
Date == Thu, 09 Nov 2010 14:49:00 GMT (0/1)
Server == test with trailing space (1/2)
Content-Type == text/html (0/1)
Content-Length == 0 (0/1)
Set-Cookie == onecookie=data; (0/3)
Set-Cookie == secondcookie=2data; (1/3)
Set-Cookie == cookie3=data3; (2/3)
Location == /19450002 (0/1)
</stdout>
</verify>
</testcase>