| 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 |  | 
 | 11 | # Server-side | 
 | 12 | <reply> | 
 | 13 | <data> | 
 | 14 | HTTP/1.1 200 OK
 | 
 | 15 | Date: Tue, 09 Nov 2010 14:49:00 GMT
 | 
 | 16 | Server: test-server/fake
 | 
 | 17 | Content-Type: text/html
 | 
 | 18 | Funny-head: yesyes
 | 
 | 19 | Content-Length: 22
 | 
 | 20 | 
 | 
 | 21 | the content goes here | 
 | 22 | </data> | 
 | 23 | </reply> | 
 | 24 |  | 
 | 25 | # Client-side | 
 | 26 | <client> | 
 | 27 | <server> | 
 | 28 | http | 
 | 29 | </server> | 
 | 30 |  <name> | 
 | 31 | HTTP with proxy authorization | 
 | 32 |  </name> | 
 | 33 |  <command> | 
 | 34 |  -U fake@user:loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong -x %HOSTIP:%HTTPPORT 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 ZmFrZUB1c2VyOmxvb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29uZw==
 | 
 | 47 | User-Agent: curl/%VERSION
 | 
 | 48 | Accept: */*
 | 
 | 49 | Proxy-Connection: Keep-Alive
 | 
 | 50 | 
 | 
 | 51 | </protocol> | 
 | 52 | </verify> | 
 | 53 | </testcase> |