test1907 (726B)
1 <testcase> 2 <info> 3 <keywords> 4 CURLINFO_EFFECTIVE_URL 5 </keywords> 6 </info> 7 8 # Server-side 9 <reply> 10 <data nocheck="yes"> 11 HTTP/1.1 200 OK 12 Date: Tue, 09 Nov 2010 14:49:00 GMT 13 Server: test-server/fake 14 Content-Type: text/html 15 Funny-head: yesyes swsclose 16 Content-Length: 0 17 18 </data> 19 </reply> 20 21 # Client-side 22 <client> 23 <server> 24 http 25 </server> 26 <name> 27 CURLINFO_EFFECTIVE_URL with non-scheme URL 28 </name> 29 <tool> 30 lib%TESTNUMBER 31 </tool> 32 33 <command> 34 %HOSTIP:%HTTPPORT/hello/../%TESTNUMBER 35 </command> 36 </client> 37 38 # Verify data after the test has been "shot" 39 <verify> 40 <protocol> 41 GET /%TESTNUMBER HTTP/1.1 42 Host: %HOSTIP:%HTTPPORT 43 Accept: */* 44 45 </protocol> 46 <stdout> 47 Effective URL: http://%HOSTIP:%HTTPPORT/%TESTNUMBER 48 </stdout> 49 </verify> 50 </testcase>