xref: /curl/tests/data/test1907 (revision 3fd80c7b)
1<testcase>
2<info>
3<keywords>
4CURLINFO_EFFECTIVE_URL
5</keywords>
6</info>
7
8# Server-side
9<reply>
10<data nocheck="yes">
11HTTP/1.1 200 OK
12Date: Tue, 09 Nov 2010 14:49:00 GMT
13Server: test-server/fake
14Content-Type: text/html
15Funny-head: yesyes swsclose
16Content-Length: 0
17
18</data>
19</reply>
20
21# Client-side
22<client>
23<server>
24http
25</server>
26<name>
27CURLINFO_EFFECTIVE_URL with non-scheme URL
28</name>
29<tool>
30lib%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>
41GET /%TESTNUMBER HTTP/1.1
42Host: %HOSTIP:%HTTPPORT
43Accept: */*
44
45</protocol>
46<stdout>
47Effective URL: http://%HOSTIP:%HTTPPORT/%TESTNUMBER
48</stdout>
49</verify>
50</testcase>
51