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 5 of them are in the body contents, we see
43 # (5*12) == 60 bytes less
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="callbackdata"
\r
60 this is what we post to the silly web server
62 ------------------------------
\r
63 Content-Disposition: form-data; name="filename"
\r
66 ------------------------------
\r
67 Content-Disposition: form-data; name="submit"
\r
70 ------------------------------
\r
71 Content-Disposition: form-data; name="somename"; filename="somefile.txt"
\r
72 Content-Type: application/octet-stream
\r
75 --------------------------------
\r