14 Date: Thu, 09 Nov 2010 14:49:00 GMT
\r
15 Server: test-server/fake swsclose
\r
17 Content-Type: text/html
\r
23 Date: Thu, 09 Nov 2010 14:49:00 GMT
\r
24 Server: test-server/fake swsclose
\r
26 Content-Type: text/html
\r
30 Date: Thu, 09 Nov 2010 14:49:00 GMT
\r
31 Server: test-server/fake swsclose
\r
33 Content-Type: text/html
\r
44 # tool is what to use instead of 'curl'
50 HTTP multi-part formpost using read callback for the file part
53 http://%HOSTIP:%HTTPPORT/554
58 # Verify data after the test has been "shot"
61 s/^--------------------------[a-z0-9]*/------------------------------/
62 s/boundary=------------------------[a-z0-9]*/boundary=----------------------------/
64 # Note that the stripping above removes 12 bytes from every occurrence of the
65 # boundary string and since 5 of them are in the body contents, we see
66 # (5*12) == 60 bytes less
69 Host: %HOSTIP:%HTTPPORT
\r
72 Content-Type: multipart/form-data; boundary=----------------------------
\r
74 ------------------------------
\r
75 Content-Disposition: form-data; name="sendfile"; filename="postit2.c"
\r
77 this is what we post to the silly web server
79 ------------------------------
\r
80 Content-Disposition: form-data; name="callbackdata"
\r
82 this is what we post to the silly web server
84 ------------------------------
\r
85 Content-Disposition: form-data; name="filename"
\r
88 ------------------------------
\r
89 Content-Disposition: form-data; name="submit"
\r
90 Content-Type: text/plain
\r
93 ------------------------------
\r
94 Content-Disposition: form-data; name="somename"; filename="somefile.txt"
\r
95 Content-Type: text/plain
\r
98 --------------------------------
\r
100 Host: %HOSTIP:%HTTPPORT
\r
102 Content-Length: 758
\r
103 Content-Type: multipart/form-data; boundary=----------------------------
\r
105 ------------------------------
\r
106 Content-Disposition: form-data; name="sendfile alternative"; filename="file name 2"
\r
108 this is what we post to the silly web server
110 ------------------------------
\r
111 Content-Disposition: form-data; name="callbackdata"
\r
113 this is what we post to the silly web server
115 ------------------------------
\r
116 Content-Disposition: form-data; name="filename"
\r
119 ------------------------------
\r
120 Content-Disposition: form-data; name="submit"
\r
121 Content-Type: text/plain
\r
124 ------------------------------
\r
125 Content-Disposition: form-data; name="somename"; filename="somefile.txt"
\r
126 Content-Type: text/plain
\r
129 --------------------------------
\r