curl/tests/data/test503

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

90 lines
1.4 KiB
Plaintext
Raw Normal View History

<testcase>
2008-08-12 07:16:48 +08:00
<info>
<keywords>
HTTP
HTTP GET
HTTP CONNECT
HTTP proxy
HTTP proxy Basic auth
proxytunnel
multi
</keywords>
</info>
2002-12-14 00:17:27 +08:00
# Server-side
<reply>
<servercmd>
connection-monitor
</servercmd>
<connect>
HTTP/1.1 200 Mighty fine indeed
</connect>
2002-12-14 00:17:27 +08:00
<data>
HTTP/1.1 200 OK swsclose
Date: Tue, 09 Nov 2010 14:49:00 GMT
2002-12-14 00:17:27 +08:00
Server: test-server/fake
Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
ETag: "21025-dc7-39462498"
</data>
<datacheck>
2004-11-29 20:01:07 +08:00
HTTP/1.1 200 Mighty fine indeed
HTTP/1.1 200 OK swsclose
Date: Tue, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake
Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
ETag: "21025-dc7-39462498"
</datacheck>
2002-12-14 00:17:27 +08:00
</reply>
# Client-side
<client>
<server>
2002-12-16 22:50:10 +08:00
http
http-proxy
2002-12-14 00:17:27 +08:00
</server>
# tool is what to use instead of 'curl'
<tool>
lib%TESTNUMBER
2002-12-14 00:17:27 +08:00
</tool>
<features>
proxy
</features>
2002-12-14 00:17:27 +08:00
<name>
2003-10-25 04:39:39 +08:00
simple multi http:// through proxytunnel with authentication info
2002-12-14 00:17:27 +08:00
</name>
<command>
http://machine.%TESTNUMBER:%HTTPPORT/%TESTNUMBER %HOSTIP:%PROXYPORT
2002-12-14 00:17:27 +08:00
</command>
<file name="log/test%TESTNUMBER.txt">
2002-12-14 00:17:27 +08:00
foo
bar
bar
foo
moo
</file>
</client>
# Verify data after the test has been "shot"
<verify>
<proxy>
CONNECT machine.%TESTNUMBER:%HTTPPORT HTTP/1.1
Host: machine.%TESTNUMBER:%HTTPPORT
Proxy-Authorization: Basic dGVzdDppbmc=
Proxy-Connection: Keep-Alive
2002-12-14 00:17:27 +08:00
</proxy>
<protocol>
GET /%TESTNUMBER HTTP/1.1
Host: machine.%TESTNUMBER:%HTTPPORT
Authorization: Basic dGVzdDppbmc=
Accept: */*
2002-12-14 00:17:27 +08:00
[DISCONNECT]
2002-12-14 00:17:27 +08:00
</protocol>
</verify>
</testcase>