test1138 (1678B)
1 <testcase> 2 <info> 3 <keywords> 4 HTTP 5 HTTP GET 6 followlocation 7 </keywords> 8 </info> 9 # 10 # Server-side 11 <reply> 12 <data crlf="yes"> 13 HTTP/1.1 302 OK swsclose 14 Location: ../moo.html/?name=%hex[%d8%a2%d8%ba%d8%a7%d8%b2%2d%d8%b3%d9%85%2d%d8%b2%d8%af%d8%a7%db%8c%db%8c%2d%d8%a7%d8%b2%2d%d8%a8%d8%a7%d8%b2%d8%a7%d8%b1%2d%d9%be%d9%88%d9%84]hex%&testcase=/%TESTNUMBER0002 15 Date: Tue, 09 Nov 2010 14:49:00 GMT 16 Connection: close 17 18 </data> 19 <data2 crlf="yes"> 20 HTTP/1.1 200 OK swsclose 21 Location: this should be ignored 22 Date: Tue, 09 Nov 2010 14:49:00 GMT 23 Connection: close 24 25 body 26 </data2> 27 <datacheck crlf="yes"> 28 HTTP/1.1 302 OK swsclose 29 Location: ../moo.html/?name=%hex[%d8%a2%d8%ba%d8%a7%d8%b2%2d%d8%b3%d9%85%2d%d8%b2%d8%af%d8%a7%db%8c%db%8c%2d%d8%a7%d8%b2%2d%d8%a8%d8%a7%d8%b2%d8%a7%d8%b1%2d%d9%be%d9%88%d9%84]hex%&testcase=/%TESTNUMBER0002 30 Date: Tue, 09 Nov 2010 14:49:00 GMT 31 Connection: close 32 33 HTTP/1.1 200 OK swsclose 34 Location: this should be ignored 35 Date: Tue, 09 Nov 2010 14:49:00 GMT 36 Connection: close 37 38 body 39 </datacheck> 40 </reply> 41 42 # 43 # Client-side 44 <client> 45 <server> 46 http 47 </server> 48 <name> 49 HTTP redirect with UTF-8 characters 50 </name> 51 <command> 52 http://%HOSTIP:%HTTPPORT/we/are/all/twits/%TESTNUMBER -L 53 </command> 54 </client> 55 56 # 57 # Verify data after the test has been "shot" 58 <verify> 59 <protocol crlf="yes"> 60 GET /we/are/all/twits/%TESTNUMBER HTTP/1.1 61 Host: %HOSTIP:%HTTPPORT 62 User-Agent: curl/%VERSION 63 Accept: */* 64 65 GET /we/are/all/moo.html/?name=%D8%A2%D8%BA%D8%A7%D8%B2-%D8%B3%D9%85-%D8%B2%D8%AF%D8%A7%DB%8C%DB%8C-%D8%A7%D8%B2-%D8%A8%D8%A7%D8%B2%D8%A7%D8%B1-%D9%BE%D9%88%D9%84&testcase=/%TESTNUMBER0002 HTTP/1.1 66 Host: %HOSTIP:%HTTPPORT 67 User-Agent: curl/%VERSION 68 Accept: */* 69 70 </protocol> 71 </verify> 72 </testcase>