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 proxy |
| 7 | HTTP proxy Basic auth |
| 8 | </keywords> |
| 9 | </info> |
| 10 | # Server-side |
| 11 | <reply> |
| 12 | <data> |
| 13 | HTTP/1.1 200 OK swsclose
|
| 14 | Date: Tue, 09 Nov 2010 14:49:00 GMT
|
| 15 | Content-Type: text/html
|
| 16 | Content-Length: 26 |
| 17 |
|
| 18 | the content would go here |
| 19 | </data> |
| 20 | </reply> |
| 21 | |
| 22 | # Client-side |
| 23 | <client> |
| 24 | <server> |
| 25 | http |
| 26 | </server> |
| 27 | <name> |
| 28 | HTTP with proxy authorization set in environment |
| 29 | </name> |
| 30 | <setenv> |
| 31 | http_proxy=http://fake:user@%HOSTIP:%HTTPPORT/ |
| 32 | </setenv> |
| 33 | <command> |
| 34 | http://we.want.that.site.com/%TESTNUMBER |
| 35 | </command> |
| 36 | <features> |
| 37 | proxy |
| 38 | </features> |
| 39 | </client> |
| 40 | |
| 41 | # Verify data after the test has been "shot" |
| 42 | <verify> |
| 43 | <protocol> |
| 44 | GET http://we.want.that.site.com/%TESTNUMBER HTTP/1.1
|
| 45 | Host: we.want.that.site.com
|
| 46 | Proxy-Authorization: Basic ZmFrZTp1c2Vy
|
| 47 | User-Agent: curl/%VERSION
|
| 48 | Accept: */*
|
| 49 | Proxy-Connection: Keep-Alive
|
| 50 |
|
| 51 | </protocol> |
| 52 | </verify> |
| 53 | </testcase> |