• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<testcase>
2<info>
3<keywords>
4CURLOPT_CURLU
5CURLINFO_EFFECTIVE_URL
6</keywords>
7</info>
8
9# Server-side
10<reply>
11<data nocheck="yes">
12HTTP/1.1 200 OK
13Date: Tue, 09 Nov 2010 14:49:00 GMT
14Server: test-server/fake
15Content-Type: text/html
16Funny-head: yesyes swsclose
17
18</data>
19</reply>
20
21# Client-side
22<client>
23<server>
24http
25</server>
26<name>
27CURLOPT_CURLU and CURLINFO_EFFECTIVE_URL
28</name>
29<tool>
30lib%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>
36http://%HOSTIP:%HTTPPORT/%TESTNUMBER
37</command>
38</client>
39
40# Verify data after the test has been "shot"
41<verify>
42<stdout>
43effective URL: http://%HOSTIP:%HTTPPORT/%TESTNUMBER
44effective URL: http://%HOSTIP:%HTTPPORT/%TESTNUMBER?foo
45effective URL: http://%HOSTIP:%HTTPPORT/%TESTNUMBER?foo&bar
46</stdout>
47<protocol>
48GET /%TESTNUMBER HTTP/1.1
49Host: %HOSTIP:%HTTPPORT
50Accept: */*
51
52GET /%TESTNUMBER?foo HTTP/1.1
53Host: %HOSTIP:%HTTPPORT
54Accept: */*
55
56GET /%TESTNUMBER?foo&bar HTTP/1.1
57Host: %HOSTIP:%HTTPPORT
58Accept: */*
59
60</protocol>
61</verify>
62</testcase>
63