test1977 (1109B)
1 <testcase> 2 <info> 3 <keywords> 4 CURLOPT_CURLU 5 CURLINFO_EFFECTIVE_URL 6 </keywords> 7 </info> 8 9 # Server-side 10 <reply> 11 <data nocheck="yes"> 12 HTTP/1.1 200 OK 13 Date: Tue, 09 Nov 2010 14:49:00 GMT 14 Server: test-server/fake 15 Content-Type: text/html 16 Funny-head: yesyes swsclose 17 18 </data> 19 </reply> 20 21 # Client-side 22 <client> 23 <server> 24 http 25 </server> 26 <name> 27 CURLOPT_CURLU and CURLINFO_EFFECTIVE_URL 28 </name> 29 <tool> 30 lib%TESTNUMBER 31 </tool> 32 33 # The test does three transfers to check how CURLINFO_EFFECTIVE_URL is reported 34 # when CURLOPT_CURLU changes between transfers. (Bug #15984) 35 <command> 36 http://%HOSTIP:%HTTPPORT/%TESTNUMBER 37 </command> 38 </client> 39 40 # Verify data after the test has been "shot" 41 <verify> 42 <stdout> 43 effective URL: http://%HOSTIP:%HTTPPORT/%TESTNUMBER 44 effective URL: http://%HOSTIP:%HTTPPORT/%TESTNUMBER?foo 45 effective URL: http://%HOSTIP:%HTTPPORT/%TESTNUMBER?foo&bar 46 </stdout> 47 <protocol> 48 GET /%TESTNUMBER HTTP/1.1 49 Host: %HOSTIP:%HTTPPORT 50 Accept: */* 51 52 GET /%TESTNUMBER?foo HTTP/1.1 53 Host: %HOSTIP:%HTTPPORT 54 Accept: */* 55 56 GET /%TESTNUMBER?foo&bar HTTP/1.1 57 Host: %HOSTIP:%HTTPPORT 58 Accept: */* 59 60 </protocol> 61 </verify> 62 </testcase>