1<testcase> 2<info> 3<keywords> 4HTTP 5HTTP GET 6HTTP proxy 7followlocation 8</keywords> 9</info> 10# Server-side 11<reply> 12<data> 13HTTP/1.1 302 This is a weirdo text message 14Connection: close 15Location: http:////foo.example.com/want/%TESTNUMBER0001 16 17This server reply is for testing 18</data> 19<data1> 20HTTP/1.1 200 hello 21Connection: close 22Content-Length: 4 23 24hej 25</data1> 26<datacheck> 27HTTP/1.1 302 This is a weirdo text message 28Connection: close 29Location: http:////foo.example.com/want/%TESTNUMBER0001 30 31</datacheck> 32</reply> 33 34# Client-side 35<client> 36<server> 37http 38</server> 39 <name> 40HTTP redirect to http://// (four slashes!) 41 </name> 42 <command> 43%HOSTIP:%HTTPPORT/want/%TESTNUMBER -L -x http://%HOSTIP:%HTTPPORT 44</command> 45<features> 46proxy 47</features> 48</client> 49 50# Verify data after the test has been "shot" 51<verify> 52<protocol> 53GET http://%HOSTIP:%HTTPPORT/want/%TESTNUMBER HTTP/1.1 54Host: %HOSTIP:%HTTPPORT 55User-Agent: curl/%VERSION 56Accept: */* 57Proxy-Connection: Keep-Alive 58 59</protocol> 60# 3, CURLE_URL_MALFORMAT for the four slashes 61<errorcode> 623 63</errorcode> 64</verify> 65</testcase> 66