14 Date: Thu, 09 Nov 2010 14:49:00 GMT
\r
15 Server: test-server/fake swsclose
\r
17 Content-Type: text/html
\r
28 # tool is what to use instead of 'curl'
34 HTTP multi-part formpost using read callback for the file part
37 http://%HOSTIP:%HTTPPORT/554
42 # Verify data after the test has been "shot"
45 s/^--------------------------[a-z0-9]*/------------------------------/
46 s/boundary=------------------------[a-z0-9]*/boundary=----------------------------/
48 # Note that the stripping above removes 12 bytes from every occurance of the
49 # boundary string and since 5 of them are in the body contents, we see
50 # (5*12) == 60 bytes less
53 Host: %HOSTIP:%HTTPPORT
\r
56 Expect: 100-continue
\r
57 Content-Type: multipart/form-data; boundary=----------------------------
\r
59 ------------------------------
\r
60 Content-Disposition: form-data; name="sendfile"; filename="postit2.c"
\r
62 this is what we post to the silly web server
64 ------------------------------
\r
65 Content-Disposition: form-data; name="callbackdata"
\r
67 this is what we post to the silly web server
69 ------------------------------
\r
70 Content-Disposition: form-data; name="filename"
\r
73 ------------------------------
\r
74 Content-Disposition: form-data; name="submit"
\r
77 ------------------------------
\r
78 Content-Disposition: form-data; name="somename"; filename="somefile.txt"
\r
79 Content-Type: text/plain
\r
82 --------------------------------
\r