15 Date: Thu, 09 Nov 2010 14:49:00 GMT
16 Server: test-server/fake swsclose
18 Content-Type: text/html
24 Date: Thu, 09 Nov 2010 14:49:00 GMT
25 Server: test-server/fake swsclose
27 Content-Type: text/html
31 Date: Thu, 09 Nov 2010 14:49:00 GMT
32 Server: test-server/fake swsclose
34 Content-Type: text/html
45 # tool is what to use instead of 'curl'
51 HTTP duplicate easy handle with mime data
54 http://%HOSTIP:%HTTPPORT/654
56 <file name="log/file654.txt">
57 This is data from a file
62 # Verify data after the test has been "shot"
65 s/^--------------------------[a-z0-9]*/------------------------------/
66 s/boundary=------------------------[a-z0-9]*/boundary=----------------------------/
68 # Note that the stripping above removes 12 bytes from every occurrence of the
69 # boundary string and since 5 of them are in the body contents, we see
70 # (5*12) == 60 bytes less
73 Host: %HOSTIP:%HTTPPORT
78 Host: %HOSTIP:%HTTPPORT
80 Transfer-Encoding: chunked
81 Content-Type: multipart/form-data; boundary=----------------------------
85 ------------------------------
86 Content-Disposition: form-data; name="greeting"
87 Content-Type: application/X-Greeting
88 Content-Transfer-Encoding: base64
92 ------------------------------
93 Content-Disposition: form-data; filename="file654.txt"
94 Content-Type: text/plain
96 This is data from a file
98 ------------------------------
99 Content-Disposition: form-data
101 this is what we post to the silly web server
103 --------------------------------