• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP PUT
6CURLOPT_HTTPTRAILER_FUNCTION
7CURLOPT_HTTPTRAILER_DATA
8</keywords>
9</info>
10
11# Server-side
12<reply>
13<data nocheck="yes">
14HTTP/1.0 200 OK swsclose
15Date: Thu, 09 Nov 2010 14:49:00 GMT
16Server: test-server/fake
17</data>
18</reply>
19# Client-side
20<client>
21<features>
22HTTP
23</features>
24<server>
25http
26</server>
27<name>
28HTTP PUT with trailers at the end
29</name>
30<tool>
31lib1591
32</tool>
33<command>
34http://%HOSTIP:%HTTPPORT/bzz/1591
35</command>
36<stdin>
37more than one byte
38</stdin>
39</client>
40
41# Verify data after the test has been "shot"
42<verify>
43<strip>
44^User-Agent:.*
45</strip>
46<protocol>
47PUT /bzz/1591 HTTP/1.1
48Host: %HOSTIP:%HTTPPORT
49Accept: */*
50Transfer-Encoding: chunked
51Trailer: my-super-awesome-trailer, my-other-awesome-trailer
52Expect: 100-continue
53
54e
55Hello Cloud!
56
570
58my-super-awesome-trailer: trail1
59my-other-awesome-trailer: trail2
60
61</protocol>
62</verify>
63</testcase>
64