• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP POST
6Content-Length
7chunked Transfer-Encoding
8</keywords>
9</info>
10
11# Server-side
12<reply>
13<data nocheck="yes">
14HTTP/1.1 200 OK
15Date: Sun, 19 Jan 2014 18:50:58 GMT
16Server: test-server/fake swsclose
17Connection: close
18</data>
19</reply>
20
21# Client-side
22<client>
23<server>
24http
25</server>
26<tool>
27lib1514
28</tool>
29<name>
30HTTP POST with read callback and unknown data size
31</name>
32<command>
33http://%HOSTIP:%HTTPPORT/1514
34</command>
35</client>
36
37# Verify data after the test has been "shot"
38<verify>
39# Content-Length header is not present
40# Transfer-Encoding header is added automatically
41<protocol>
42POST /1514 HTTP/1.1
43Host: %HOSTIP:%HTTPPORT
44Accept: */*
45Transfer-Encoding: chunked
46Content-Type: application/x-www-form-urlencoded
47Expect: 100-continue
48
491
50d
511
52u
531
54m
551
56m
571
58y
590
60
61</protocol>
62</verify>
63</testcase>
64