| 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 | followlocation | 
 | 8 | </keywords> | 
 | 9 | </info> | 
 | 10 | # | 
 | 11 | # Server-side | 
 | 12 | <reply> | 
 | 13 | <data> | 
 | 14 | HTTP/1.1 302 OK
 | 
 | 15 | Location: http://example.net/tes t case=/%TESTNUMBER0002
 | 
 | 16 | Date: Tue, 09 Nov 2010 14:49:00 GMT
 | 
 | 17 | Content-Length: 0
 | 
 | 18 | 
 | 
 | 19 | </data> | 
 | 20 | <data2> | 
 | 21 | HTTP/1.1 200 OK
 | 
 | 22 | Location: this should be ignored
 | 
 | 23 | Date: Tue, 09 Nov 2010 14:49:00 GMT
 | 
 | 24 | Content-Length: 5
 | 
 | 25 | 
 | 
 | 26 | body | 
 | 27 | </data2> | 
 | 28 | <datacheck> | 
 | 29 | HTTP/1.1 302 OK
 | 
 | 30 | Location: http://example.net/tes t case=/%TESTNUMBER0002
 | 
 | 31 | Date: Tue, 09 Nov 2010 14:49:00 GMT
 | 
 | 32 | Content-Length: 0
 | 
 | 33 | 
 | 
 | 34 | HTTP/1.1 200 OK
 | 
 | 35 | Location: this should be ignored
 | 
 | 36 | Date: Tue, 09 Nov 2010 14:49:00 GMT
 | 
 | 37 | Content-Length: 5
 | 
 | 38 | 
 | 
 | 39 | body | 
 | 40 | </datacheck> | 
 | 41 | </reply> | 
 | 42 |  | 
 | 43 | # | 
 | 44 | # Client-side | 
 | 45 | <client> | 
 | 46 | <server> | 
 | 47 | http | 
 | 48 | </server> | 
 | 49 |  <name> | 
 | 50 | HTTP redirect with whitespace in absolute Location: URL | 
 | 51 |  </name> | 
 | 52 |  <command> | 
 | 53 | http://example.com/please/gimme/%TESTNUMBER -L -x http://%HOSTIP:%HTTPPORT | 
 | 54 | </command> | 
 | 55 | <features> | 
 | 56 | proxy | 
 | 57 | </features> | 
 | 58 | </client> | 
 | 59 |  | 
 | 60 | # | 
 | 61 | # Verify data after the test has been "shot" | 
 | 62 | <verify> | 
 | 63 | <protocol> | 
 | 64 | GET http://example.com/please/gimme/%TESTNUMBER HTTP/1.1
 | 
 | 65 | Host: example.com
 | 
 | 66 | User-Agent: curl/%VERSION
 | 
 | 67 | Accept: */*
 | 
 | 68 | Proxy-Connection: Keep-Alive
 | 
 | 69 | 
 | 
 | 70 | GET http://example.net/tes%20t%20case=/%TESTNUMBER0002 HTTP/1.1
 | 
 | 71 | Host: example.net
 | 
 | 72 | User-Agent: curl/%VERSION
 | 
 | 73 | Accept: */*
 | 
 | 74 | Proxy-Connection: Keep-Alive
 | 
 | 75 | 
 | 
 | 76 | </protocol> | 
 | 77 | </verify> | 
 | 78 | </testcase> |