mirror of
https://github.com/curl/curl.git
synced 2026-04-11 12:01:42 +08:00
90 lines
1.7 KiB
XML
90 lines
1.7 KiB
XML
<?xml version="1.0" encoding="US-ASCII"?>
|
|
<testcase>
|
|
<info>
|
|
<keywords>
|
|
HTTP
|
|
HTTP CONNECT
|
|
HTTP proxy
|
|
</keywords>
|
|
</info>
|
|
|
|
# Server-side
|
|
<reply>
|
|
|
|
# this is returned first since we get no proxy-auth
|
|
<connect crlf="headers" nocheck="yes">
|
|
HTTP/1.1 200 OK
|
|
|
|
</connect>
|
|
|
|
<data crlf="headers" nocheck="yes">
|
|
HTTP/1.1 200 OK
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
|
Content-Length: 7
|
|
Content-Type: text/html
|
|
Funny-head: yesyes
|
|
|
|
first!
|
|
</data>
|
|
|
|
<data2 crlf="headers" nocheck="yes">
|
|
HTTP/1.1 200 OK
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
|
Content-Length: 7
|
|
Content-Type: text/html
|
|
Funny-head: yesyes
|
|
|
|
daniel
|
|
</data2>
|
|
|
|
</reply>
|
|
|
|
# Client-side
|
|
<client>
|
|
<server>
|
|
http
|
|
https
|
|
http-proxy
|
|
</server>
|
|
<features>
|
|
proxy
|
|
</features>
|
|
<name>
|
|
HTTPS reuse a proxy with different credentials
|
|
</name>
|
|
<command>
|
|
https://example.com:%HTTPSPORT/path/%TESTNUMBER --proxy http://user1:pwd1@%HOSTIP:%PROXYPORT --insecure --next https://example.com:%HTTPSPORT/path/%TESTNUMBER0002 --proxy http://user2:pwd2@%HOSTIP:%PROXYPORT --insecure
|
|
</command>
|
|
</client>
|
|
|
|
# Verify data after the test has been "shot"
|
|
<verify>
|
|
<proxy crlf="headers">
|
|
CONNECT example.com:%HTTPSPORT HTTP/1.1
|
|
Host: example.com:%HTTPSPORT
|
|
Proxy-Authorization: Basic %b64[user1:pwd1]b64%
|
|
User-Agent: curl/%VERSION
|
|
Proxy-Connection: Keep-Alive
|
|
|
|
CONNECT example.com:%HTTPSPORT HTTP/1.1
|
|
Host: example.com:%HTTPSPORT
|
|
Proxy-Authorization: Basic %b64[user2:pwd2]b64%
|
|
User-Agent: curl/%VERSION
|
|
Proxy-Connection: Keep-Alive
|
|
|
|
</proxy>
|
|
<protocol crlf="headers">
|
|
GET /path/%TESTNUMBER HTTP/1.1
|
|
Host: example.com:%HTTPSPORT
|
|
User-Agent: curl/%VERSION
|
|
Accept: */*
|
|
|
|
GET /path/%TESTNUMBER0002 HTTP/1.1
|
|
Host: example.com:%HTTPSPORT
|
|
User-Agent: curl/%VERSION
|
|
Accept: */*
|
|
|
|
</protocol>
|
|
</verify>
|
|
</testcase>
|