Debian Codegraph @

deps/curl/tests/data/test1907

raw
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: Thu, 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 lib1907
31 </tool>
32
33 <command>
34 %HOSTIP:%HTTPPORT/hello/../1907
35 </command>
36 </client>
37
38 # Verify data after the test has been "shot"
39 <verify>
40 <strip>
41 ^User-Agent:.*
42 </strip>
43 <protocol>
44 GET /1907 HTTP/1.1
45 Host: %HOSTIP:%HTTPPORT
46 Accept: */*
47
48 </protocol>
49 <stdout>
50 Effective URL: http://%HOSTIP:%HTTPPORT/1907
51 </stdout>
52 </verify>
53 </testcase>