xref: /curl/tests/data/test1448 (revision 0b70b23e)
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6IDN
7followlocation
8--resolve
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: http://åäö.se:%HTTPPORT/%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
43codeset-utf8
44</features>
45<setenv>
46LC_ALL=en_US.UTF-8
47LC_CTYPE=en_US.UTF-8
48</setenv>
49<name>
50Redirect following to UTF-8 IDN host name
51</name>
52
53<command>
54http://åäö.se:%HTTPPORT/%TESTNUMBER --resolve xn--4cab6c.se:%HTTPPORT:%HOSTIP -L --connect-to %HOSTIP:%HTTPPORT:%HOSTIP:%HTTPPORT
55</command>
56</client>
57
58#
59# Verify data after the test has been "shot"
60<verify>
61<protocol>
62GET /%TESTNUMBER HTTP/1.1
63Host: xn--4cab6c.se:%HTTPPORT
64User-Agent: curl/%VERSION
65Accept: */*
66
67GET /%TESTNUMBER0001 HTTP/1.1
68Host: xn--4cab6c.se:%HTTPPORT
69User-Agent: curl/%VERSION
70Accept: */*
71
72</protocol>
73
74<stdout>
75HTTP/1.1 302 OK swsbounce
76Date: Tue, 09 Nov 2010 14:49:00 GMT
77Content-Length: 9
78Content-Type: text/plain
79Location: http://åäö.se:%HTTPPORT/%TESTNUMBER0001
80
81HTTP/1.1 200 OK
82Date: Tue, 09 Nov 2010 14:49:00 GMT
83Content-Length: 3
84Content-Type: text/plain; charset=us-ascii
85
86OK
87</stdout>
88
89</verify>
90</testcase>
91