xref: /curl/tests/data/test2047 (revision 0b70b23e)
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6HTTP proxy
7IDN
8followlocation
9--write-out
10</keywords>
11</info>
12
13#
14# Server-side
15<reply>
16<data nocheck="yes">
17HTTP/1.1 302 OK swsbounce
18Date: Tue, 09 Nov 2010 14:49:00 GMT
19Content-Length: 9
20Content-Type: text/plain
21Location: ./%TESTNUMBER0001
22
23redirect
24</data>
25<data1 nocheck="yes">
26HTTP/1.1 200 OK
27Date: Tue, 09 Nov 2010 14:49:00 GMT
28Content-Length: 3
29Content-Type: text/plain; charset=us-ascii
30
31OK
32</data1>
33</reply>
34
35#
36# Client-side
37<client>
38<server>
39http
40</server>
41<features>
42IDN
43proxy
44codeset-utf8
45</features>
46<setenv>
47LC_ALL=en_US.UTF-8
48LC_CTYPE=en_US.UTF-8
49</setenv>
50<name>
51Connection reuse with IDN host name over HTTP proxy
52</name>
53
54<command>
55http://åäö.se/%TESTNUMBER -x %HOSTIP:%HTTPPORT -w "%{num_connects}\n%{num_redirects}\n%{size_download}\n%{url_effective}\n%{content_type}\n%{response_code}\n" -L
56</command>
57</client>
58
59#
60# Verify data after the test has been "shot"
61<verify>
62<protocol>
63GET http://xn--4cab6c.se/%TESTNUMBER HTTP/1.1
64Host: xn--4cab6c.se
65User-Agent: curl/%VERSION
66Accept: */*
67Proxy-Connection: Keep-Alive
68
69GET http://xn--4cab6c.se/%TESTNUMBER0001 HTTP/1.1
70Host: xn--4cab6c.se
71User-Agent: curl/%VERSION
72Accept: */*
73Proxy-Connection: Keep-Alive
74
75</protocol>
76
77<stdout>
78HTTP/1.1 302 OK swsbounce
79Date: Tue, 09 Nov 2010 14:49:00 GMT
80Content-Length: 9
81Content-Type: text/plain
82Location: ./%TESTNUMBER0001
83
84HTTP/1.1 200 OK
85Date: Tue, 09 Nov 2010 14:49:00 GMT
86Content-Length: 3
87Content-Type: text/plain; charset=us-ascii
88
89OK
901
911
923
93http://åäö.se/%TESTNUMBER0001
94text/plain; charset=us-ascii
95200
96</stdout>
97
98</verify>
99</testcase>
100