• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<testcase>
2<info>
3<keywords>
4HTTP
5POST
6POST callback
7slow callback
8early response
9</keywords>
10</info>
11#
12# This reproduces issue #657, fixed with PR #668 - on Windows
13#
14# Server-side
15<reply>
16# Force server reply right after request headers, not waiting for request body
17<servercmd>
18skip: 45
19</servercmd>
20<data>
21HTTP/1.1 500 Internal Server Error
22Date: Thu, 17 Mar 2016 14:41:00 GMT
23Server: test-server/fake
24Content-Type: text/plain; charset=US-ASCII
25X-Special: swsclose
26Content-Length: 55
27Connection: close
28
29This is a virtual description of server virtual error.
30</data>
31</reply>
32
33# Client-side
34<client>
35<server>
36http
37</server>
38# tool is what to use instead of 'curl'
39<tool>
40lib1517
41</tool>
42
43 <name>
44HTTP POST, server responds before completed send
45 </name>
46 <command>
47http://%HOSTIP:%HTTPPORT/1517
48</command>
49</client>
50
51#
52# Verify data after the test has been "shot"
53<verify>
54<strippart>
55s/^(this is what we post to the silly web server)(\r)?\n//
56</strippart>
57<protocol>
58POST /1517 HTTP/1.1
59Host: %HOSTIP:%HTTPPORT
60Accept: */*
61Content-Length: 45
62Content-Type: application/x-www-form-urlencoded
63
64</protocol>
65<errorcode>
660
67</errorcode>
68</verify>
69</testcase>
70