xf.li | 6c8fc1e | 2023-08-12 00:11:09 -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: Tue, 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 |
|
| 27 | </data> |
| 28 | <datacheck> |
| 29 | HTTP/1.1 200 OK
|
| 30 | Server: present
|
| 31 |
|
| 32 | HTTP/1.1 200 OK swsclose
|
| 33 | Date: Tue, 09 Nov 2010 14:49:00 GMT
|
| 34 | Server: test-server/fake
|
| 35 | Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
|
| 36 | ETag: "21025-dc7-39462498"
|
| 37 |
|
| 38 | </datacheck> |
| 39 | </reply> |
| 40 | |
| 41 | # Client-side |
| 42 | <client> |
| 43 | <server> |
| 44 | http |
| 45 | http-proxy |
| 46 | </server> |
| 47 | <tool> |
| 48 | lib%TESTNUMBER |
| 49 | </tool> |
| 50 | <name> |
| 51 | CURLOPT_PROXYHEADER: separate host/proxy headers |
| 52 | </name> |
| 53 | <command> |
| 54 | http://the.old.moo.%TESTNUMBER:%HTTPPORT/%TESTNUMBER %HOSTIP:%PROXYPORT |
| 55 | </command> |
| 56 | <features> |
| 57 | proxy |
| 58 | </features> |
| 59 | </client> |
| 60 | |
| 61 | # Verify data after the test has been "shot" |
| 62 | <verify> |
| 63 | <proxy> |
| 64 | CONNECT the.old.moo.%TESTNUMBER:%HTTPPORT HTTP/1.1
|
| 65 | Host: the.old.moo.%TESTNUMBER:%HTTPPORT
|
| 66 | Proxy-Connection: Keep-Alive
|
| 67 | User-Agent: Proxy Agent
|
| 68 |
|
| 69 | </proxy> |
| 70 | <protocol> |
| 71 | PUT /%TESTNUMBER HTTP/1.1
|
| 72 | Host: the.old.moo.%TESTNUMBER:%HTTPPORT
|
| 73 | Accept: */*
|
| 74 | User-Agent: Http Agent
|
| 75 | Content-Length: 13
|
| 76 | Expect: 100-continue
|
| 77 |
|
| 78 | Hello Cloud! |
| 79 | </protocol> |
| 80 | </verify> |
| 81 | </testcase> |