xref: /curl/tests/data/test1662 (revision 18f1cd7a)
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP POST
6</keywords>
7</info>
8
9#
10# Server-side
11<reply>
12<data nocheck="yes">
13HTTP/1.1 301 OK
14Date: Tue, 09 Nov 2010 14:49:00 GMT
15Server: test-server/fake
16Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
17ETag: "21025-dc7-39462498"
18Accept-Ranges: bytes
19Content-Length: 6
20Location: %TESTNUMBER0002
21Content-Type: text/html
22Funny-head: yesyes
23
24-foo-
25</data>
26<data2 nocheck="yes">
27HTTP/1.1 200 OK
28Content-Length: 6
29Connection: close
30Funny-head: nono
31
32-bar-
33</data2>
34</reply>
35
36#
37# Client-side
38<client>
39<features>
40Mime
41Debug
42</features>
43<server>
44http
45</server>
46<name>
47HTTP formpost from callback and a redirect and switch to GET
48</name>
49<tool>
50lib%TESTNUMBER
51</tool>
52<command>
53http://%HOSTIP:%HTTPPORT/%TESTNUMBER
54</command>
55</client>
56
57#
58# Verify data after the test has been "shot"
59<verify>
60
61# This does not verify the protocol because the sending of data might be
62# aborted early making it hard to check properly.
63<stdout>
64-bar-
65</stdout>
66</verify>
67</testcase>
68