lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | <testcase> |
| 2 | <info> |
| 3 | <keywords> |
| 4 | HTTP |
| 5 | HTTP GET |
| 6 | HTTP CONNECT |
| 7 | HTTP proxy |
| 8 | proxytunnel |
| 9 | CURLOPT_PROXYHEADER |
| 10 | </keywords> |
| 11 | </info> |
| 12 | |
| 13 | # Server-side |
| 14 | <reply> |
| 15 | <connect> |
| 16 | HTTP/1.1 200 OK
|
| 17 | Server: present
|
| 18 |
|
| 19 | </connect> |
| 20 | <data> |
| 21 | HTTP/1.1 200 OK swsclose
|
| 22 | Date: Thu, 09 Nov 2010 14:49:00 GMT
|
| 23 | Server: test-server/fake
|
| 24 | Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
|
| 25 | ETag: "21025-dc7-39462498"
|
| 26 | </data> |
| 27 | <datacheck> |
| 28 | HTTP/1.1 200 OK
|
| 29 | Server: present
|
| 30 |
|
| 31 | HTTP/1.1 200 OK swsclose
|
| 32 | Date: Thu, 09 Nov 2010 14:49:00 GMT
|
| 33 | Server: test-server/fake
|
| 34 | Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
|
| 35 | ETag: "21025-dc7-39462498"
|
| 36 | </datacheck> |
| 37 | </reply> |
| 38 | |
| 39 | # Client-side |
| 40 | <client> |
| 41 | <server> |
| 42 | http |
| 43 | http-proxy |
| 44 | </server> |
| 45 | <tool> |
| 46 | lib1526 |
| 47 | </tool> |
| 48 | <name> |
| 49 | CURLOPT_PROXYHEADER: separate host/proxy headers |
| 50 | </name> |
| 51 | <command> |
| 52 | http://the.old.moo.1526:%HTTPPORT/1526 %HOSTIP:%PROXYPORT |
| 53 | </command> |
| 54 | </client> |
| 55 | |
| 56 | # Verify data after the test has been "shot" |
| 57 | <verify> |
| 58 | <proxy> |
| 59 | CONNECT the.old.moo.1526:%HTTPPORT HTTP/1.1
|
| 60 | Host: the.old.moo.1526:%HTTPPORT
|
| 61 | Proxy-Connection: Keep-Alive
|
| 62 | User-Agent: Proxy Agent
|
| 63 |
|
| 64 | </proxy> |
| 65 | <protocol> |
| 66 | PUT /1526 HTTP/1.1
|
| 67 | Host: the.old.moo.1526:%HTTPPORT
|
| 68 | Accept: */*
|
| 69 | User-Agent: Http Agent
|
| 70 | Content-Length: 13
|
| 71 | Expect: 100-continue
|
| 72 |
|
| 73 | Hello Cloud! |
| 74 | </protocol> |
| 75 | </verify> |
| 76 | </testcase> |