xref: /curl/tests/data/test1129 (revision 61c8f1ed)
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP POST
6Expect: 100-continue
7</keywords>
8</info>
9
10#
11# Server-side
12<reply>
13<data nocheck="yes">
14HTTP/1.1 404 NOOOOOOOOO
15Date: Tue, 09 Nov 2010 14:49:00 GMT
16Server: test-server/fake
17Content-Length: 6
18Content-Type: text/html
19
20-foo-
21</data>
22
23<data1>
24HTTP/1.1 404 NEITHER
25Date: Tue, 09 Nov 2010 14:49:00 GMT
26Server: test-server/fake
27Content-Length: 6
28Content-Type: text/html
29
30-foo-
31</data1>
32
33# we use skip to make the test server never read the full payload off
34# the socket and instead return the response at once
35<servercmd>
36skip: 1053700
37</servercmd>
38</reply>
39
40#
41# Client-side
42<client>
43# 1053700 x 'x'
44<file name="%LOGDIR/file%TESTNUMBER">
45%repeat[1053700 x x]%
46</file>
47<server>
48http
49</server>
50<name>
51HTTP POST expect 100-continue with a 404
52</name>
53 <command option="no-output">
54-d @%LOGDIR/file%TESTNUMBER --expect100-timeout 99 http://%HOSTIP:%HTTPPORT/%TESTNUMBER http://%HOSTIP:%HTTPPORT/%TESTNUMBER0001
55</command>
56</client>
57
58#
59# Verify data after the test has been "shot"
60<verify>
61<stdout>
62HTTP/1.1 404 NOOOOOOOOO
63Date: Tue, 09 Nov 2010 14:49:00 GMT
64Server: test-server/fake
65Content-Length: 6
66Content-Type: text/html
67
68-foo-
69HTTP/1.1 404 NEITHER
70Date: Tue, 09 Nov 2010 14:49:00 GMT
71Server: test-server/fake
72Content-Length: 6
73Content-Type: text/html
74
75-foo-
76</stdout>
77<protocol>
78POST /%TESTNUMBER HTTP/1.1
79Host: %HOSTIP:%HTTPPORT
80User-Agent: curl/%VERSION
81Accept: */*
82Content-Length: 1053700
83Content-Type: application/x-www-form-urlencoded
84Expect: 100-continue
85
86POST /%TESTNUMBER0001 HTTP/1.1
87Host: %HOSTIP:%HTTPPORT
88User-Agent: curl/%VERSION
89Accept: */*
90Content-Length: 1053700
91Content-Type: application/x-www-form-urlencoded
92Expect: 100-continue
93
94</protocol>
95</verify>
96</testcase>
97