7 Date: Thu, 09 Nov 2010 14:49:00 GMT
8 Server: test-server/fake swsclose
10 Content-Type: text/html
21 # tool is what to use instead of 'curl'
27 HTTP multi-part formpost using read callback for the file part
30 http://%HOSTIP:%HTTPPORT/554
35 # Verify data after the test has been "shot"
38 s/^------------------------------[a-z0-9]*/------------------------------/
39 s/boundary=----------------------------[a-z0-9]*/boundary=----------------------------/
41 # Note that the stripping above removes 12 bytes from every occurance of the
42 # boundary string and since 4 of them are in the body contents, we see
43 # 415 - (4*12) here == 367 bytes.
46 Host: %HOSTIP:%HTTPPORT
\r
49 Expect: 100-continue
\r
50 Content-Type: multipart/form-data; boundary=----------------------------
\r
52 ------------------------------
\r
53 Content-Disposition: form-data; name="sendfile"; filename="postit2.c"
\r
55 this is what we post to the silly web server
57 ------------------------------
\r
58 Content-Disposition: form-data; name="filename"
\r
61 ------------------------------
\r
62 Content-Disposition: form-data; name="submit"
\r
65 --------------------------------
\r