2017-09-15 04:50:32 +08:00
|
|
|
<testcase>
|
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
HTTP GET
|
|
|
|
HTTP proxy
|
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
|
|
|
|
# this is returned when we get a GET!
|
|
|
|
<data>
|
|
|
|
HTTP/1.1 200 OK
|
2020-02-28 22:00:03 +08:00
|
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
2017-09-15 04:50:32 +08:00
|
|
|
Content-Length: 7
|
|
|
|
Content-Type: text/html
|
|
|
|
Funny-head: yesyes
|
|
|
|
|
|
|
|
daniel
|
|
|
|
</data>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
http
|
|
|
|
</server>
|
|
|
|
<name>
|
|
|
|
HTTP proxy with URLs using different ports
|
|
|
|
</name>
|
|
|
|
<command>
|
2021-03-13 00:38:26 +08:00
|
|
|
--proxy http://%HOSTIP:%HTTPPORT http://test.remote.example.com.%TESTNUMBER:150/path http://test.remote.example.com.%TESTNUMBER:1234/path/
|
2017-09-15 04:50:32 +08:00
|
|
|
</command>
|
2019-10-15 04:29:19 +08:00
|
|
|
<features>
|
|
|
|
proxy
|
|
|
|
</features>
|
2017-09-15 04:50:32 +08:00
|
|
|
</client>
|
|
|
|
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<protocol>
|
2021-03-13 00:38:26 +08:00
|
|
|
GET http://test.remote.example.com.%TESTNUMBER:150/path HTTP/1.1
|
|
|
|
Host: test.remote.example.com.%TESTNUMBER:150
|
2020-10-02 19:45:24 +08:00
|
|
|
User-Agent: curl/%VERSION
|
2017-09-15 04:50:32 +08:00
|
|
|
Accept: */*
|
|
|
|
Proxy-Connection: Keep-Alive
|
|
|
|
|
2021-03-13 00:38:26 +08:00
|
|
|
GET http://test.remote.example.com.%TESTNUMBER:1234/path/ HTTP/1.1
|
|
|
|
Host: test.remote.example.com.%TESTNUMBER:1234
|
2020-10-02 19:45:24 +08:00
|
|
|
User-Agent: curl/%VERSION
|
2017-09-15 04:50:32 +08:00
|
|
|
Accept: */*
|
|
|
|
Proxy-Connection: Keep-Alive
|
|
|
|
|
|
|
|
</protocol>
|
|
|
|
</verify>
|
|
|
|
</testcase>
|