tizen 2.3.1 release
[external/curl.git] / tests / data / test1413
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 followlocation
7 </keywords>
8 </info>
9 #
10 # Server-side
11 <reply>
12 <data>
13 HTTP/1.1 302 OK swsclose\r
14 Location: moo.html/14130002#fragmentpart\r
15 Date: Thu, 09 Nov 2010 14:49:00 GMT\r
16 Connection: close\r
17 \r
18 </data>
19 <data2>
20 HTTP/1.1 200 OK swsclose\r
21 Location: this should be ignored\r
22 Date: Thu, 09 Nov 2010 14:49:00 GMT\r
23 Connection: close\r
24 \r
25 body
26 </data2>
27 <datacheck>
28 HTTP/1.1 302 OK swsclose\r
29 Location: moo.html/14130002#fragmentpart\r
30 Date: Thu, 09 Nov 2010 14:49:00 GMT\r
31 Connection: close\r
32 \r
33 HTTP/1.1 200 OK swsclose\r
34 Location: this should be ignored\r
35 Date: Thu, 09 Nov 2010 14:49:00 GMT\r
36 Connection: close\r
37 \r
38 body
39 </datacheck>
40 </reply>
41
42 #
43 # Client-side
44 <client>
45 <server>
46 http
47 </server>
48  <name>
49 HTTP redirect with fragment in new URL
50  </name>
51  <command>
52 http://%HOSTIP:%HTTPPORT/this/1413 -L
53 </command>
54 </client>
55
56 #
57 # Verify data after the test has been "shot"
58 <verify>
59 <strip>
60 ^User-Agent:.*
61 </strip>
62 <protocol>
63 GET /this/1413 HTTP/1.1\r
64 Host: %HOSTIP:%HTTPPORT\r
65 Accept: */*\r
66 \r
67 GET /this/moo.html/14130002 HTTP/1.1\r
68 Host: %HOSTIP:%HTTPPORT\r
69 Accept: */*\r
70 \r
71 </protocol>
72 </verify>
73 </testcase>