56518161c7059fa64ddc51ba8fb5deb43bc42b55
[platform/upstream/curl.git] / tests / data / test1533
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP POST
6 CURLOPT_KEEP_SENDING_ON_ERROR
7 </keywords>
8 </info>
9
10 # Server-side
11 <reply>
12 <servercmd>
13 auth_required
14 </servercmd>
15 <data nocheck="yes">
16 HTTP/1.1 401 Authorization Required\r
17 Date: Thu, 09 Nov 2010 14:49:00 GMT\r
18 Server: test-server/fake\r
19 Content-Length: 15\r
20
21 Early Response
22 </data>
23 </reply>
24 # Client-side
25 <client>
26 <server>
27 http
28 </server>
29 <tool>
30 lib1533
31 </tool>
32 <name>
33 HTTP with CURLOPT_KEEP_SENDING_ON_ERROR and an early error response
34 </name>
35 <command>
36 http://%HOSTIP:%HTTPPORT/1533
37 </command>
38 </client>
39
40 # Verify data after the test has been "shot"
41 # TEST_ERR_SUCCESS is errorcode 120
42 <verify>
43 <errorcode>
44 120
45 </errorcode>
46 <protocol nonewline="yes">
47 POST /1533 HTTP/1.1\r
48 Host: %HOSTIP:%HTTPPORT\r
49 Accept: */*\r
50 Content-Length: 3\r
51 Content-Type: application/x-www-form-urlencoded\r
52 \r
53 POST /1533 HTTP/1.1\r
54 Host: %HOSTIP:%HTTPPORT\r
55 Accept: */*\r
56 Content-Length: 3\r
57 Content-Type: application/x-www-form-urlencoded\r
58 \r
59 POST /1533 HTTP/1.1\r
60 Host: %HOSTIP:%HTTPPORT\r
61 Accept: */*\r
62 Content-Length: 3\r
63 Content-Type: application/x-www-form-urlencoded\r
64 \r
65 aaaPOST /1533 HTTP/1.1\r
66 Host: %HOSTIP:%HTTPPORT\r
67 Accept: */*\r
68 Content-Length: 3\r
69 Content-Type: application/x-www-form-urlencoded\r
70 \r
71 aaa
72 </protocol>
73 </verify>
74 </testcase>