xref: /curl/tests/data/test1533 (revision e2b4df7b)
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP POST
6CURLOPT_KEEP_SENDING_ON_ERROR
7</keywords>
8</info>
9
10# Server-side
11<reply>
12<servercmd>
13auth_required
14</servercmd>
15<data nocheck="yes">
16HTTP/1.1 401 Authorization Required
17Date: Tue, 09 Nov 2010 14:49:00 GMT
18Server: test-server/fake
19Content-Length: 15
20
21Early Response
22</data>
23</reply>
24# Client-side
25<client>
26<server>
27http
28</server>
29<tool>
30lib%TESTNUMBER
31</tool>
32<name>
33HTTP with CURLOPT_KEEP_SENDING_ON_ERROR and an early error response
34</name>
35<command>
36http://%HOSTIP:%HTTPPORT/%TESTNUMBER
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>
44120
45</errorcode>
46<protocol nonewline="yes">
47POST /%TESTNUMBER HTTP/1.1
48Host: %HOSTIP:%HTTPPORT
49Accept: */*
50Content-Length: 3
51Content-Type: application/x-www-form-urlencoded
52
53POST /%TESTNUMBER HTTP/1.1
54Host: %HOSTIP:%HTTPPORT
55Accept: */*
56Content-Length: 3
57Content-Type: application/x-www-form-urlencoded
58
59POST /%TESTNUMBER HTTP/1.1
60Host: %HOSTIP:%HTTPPORT
61Accept: */*
62Content-Length: 3
63Content-Type: application/x-www-form-urlencoded
64
65aaaPOST /%TESTNUMBER HTTP/1.1
66Host: %HOSTIP:%HTTPPORT
67Accept: */*
68Content-Length: 3
69Content-Type: application/x-www-form-urlencoded
70
71aaa
72</protocol>
73</verify>
74</testcase>
75