2003-08-12 10:19:23 +02:00
|
|
|
#
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
<data>
|
|
|
|
HTTP/1.1 200 OK
|
|
|
|
Date: Thu, 09 Nov 2010 14:49:00 GMT
|
|
|
|
Server: test-server/fake swsclose
|
|
|
|
Content-Type: text/html
|
|
|
|
Funny-head: yesyes
|
|
|
|
|
|
|
|
contents
|
|
|
|
</data>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
http
|
|
|
|
</server>
|
|
|
|
<name>
|
|
|
|
HTTP over proxy with site and proxy authentication
|
|
|
|
</name>
|
|
|
|
<command>
|
2004-09-08 10:08:38 +02:00
|
|
|
http://%HOSTIP:%HTTPPORT/we/want/that/page/85 -x %HOSTIP:%HTTPPORT --user iam:myself --proxy-user testing:this
|
2003-08-12 10:19:23 +02:00
|
|
|
</command>
|
2005-01-25 22:45:03 +01:00
|
|
|
</client>
|
2003-08-12 10:19:23 +02:00
|
|
|
|
|
|
|
#
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<strip>
|
|
|
|
^User-Agent:.*
|
|
|
|
</strip>
|
|
|
|
<protocol>
|
2004-09-08 10:08:38 +02:00
|
|
|
GET http://127.0.0.1:%HTTPPORT/we/want/that/page/85 HTTP/1.1
|
2004-05-04 09:52:53 +02:00
|
|
|
Proxy-Authorization: Basic dGVzdGluZzp0aGlz
|
2003-08-12 10:19:23 +02:00
|
|
|
Authorization: Basic aWFtOm15c2VsZg==
|
|
|
|
User-Agent: curl/7.10.7-pre2 (i686-pc-linux-gnu) libcurl/7.10.7-pre2 OpenSSL/0.9.7a zlib/1.1.3
|
2004-09-08 10:08:38 +02:00
|
|
|
Host: 127.0.0.1:%HTTPPORT
|
2003-08-12 10:19:23 +02:00
|
|
|
Pragma: no-cache
|
2004-02-09 13:46:41 +01:00
|
|
|
Accept: */*
|
2003-08-12 10:19:23 +02:00
|
|
|
|
|
|
|
</protocol>
|
|
|
|
</verify>
|