xref: /curl/tests/data/test1325 (revision 3fd80c7b)
1<testcase>
2# https://greenbytes.de/tech/webdav/draft-reschke-http-status-308-latest.html
3<info>
4<keywords>
5HTTP
6HTTP GET
7308
8followlocation
9</keywords>
10</info>
11#
12# Server-side
13<reply>
14<data>
15HTTP/1.1 308 OK swsclose
16Location: %TESTNUMBER0002
17Date: Tue, 09 Nov 2010 14:49:00 GMT
18Connection: close
19
20</data>
21<data2>
22HTTP/1.1 200 OK swsclose
23Location: this should be ignored
24Date: Tue, 09 Nov 2010 14:49:00 GMT
25Connection: close
26
27body
28</data2>
29<datacheck>
30HTTP/1.1 308 OK swsclose
31Location: %TESTNUMBER0002
32Date: Tue, 09 Nov 2010 14:49:00 GMT
33Connection: close
34
35HTTP/1.1 200 OK swsclose
36Location: this should be ignored
37Date: Tue, 09 Nov 2010 14:49:00 GMT
38Connection: close
39
40body
41</datacheck>
42</reply>
43
44#
45# Client-side
46<client>
47<server>
48http
49</server>
50<name>
51HTTP 308-redirect with POST
52</name>
53<command>
54http://%HOSTIP:%HTTPPORT/we/%TESTNUMBER -L -d "moo"
55</command>
56</client>
57
58#
59# Verify data after the test has been "shot"
60<verify>
61<protocol nonewline="yes">
62POST /we/%TESTNUMBER HTTP/1.1
63Host: %HOSTIP:%HTTPPORT
64User-Agent: curl/%VERSION
65Accept: */*
66Content-Length: 3
67Content-Type: application/x-www-form-urlencoded
68
69mooPOST /we/%TESTNUMBER0002 HTTP/1.1
70Host: %HOSTIP:%HTTPPORT
71User-Agent: curl/%VERSION
72Accept: */*
73Content-Length: 3
74Content-Type: application/x-www-form-urlencoded
75
76moo
77</protocol>
78</verify>
79</testcase>
80