14 Date: Thu, 09 Nov 2010 14:49:00 GMT
15 Server: test-server/fake swsclose
17 Content-Type: text/html
23 Date: Thu, 09 Nov 2010 14:49:00 GMT
24 Server: test-server/fake swsclose
26 Content-Type: text/html
30 Date: Thu, 09 Nov 2010 14:49:00 GMT
31 Server: test-server/fake swsclose
33 Content-Type: text/html
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
72 Content-Type: multipart/form-data; boundary=----------------------------
74 ------------------------------
75 Content-Disposition: form-data; name="sendfile"; filename="postit2.c"
77 this is what we post to the silly web server
79 ------------------------------
80 Content-Disposition: form-data; name="callbackdata"
82 this is what we post to the silly web server
84 ------------------------------
85 Content-Disposition: form-data; name="filename"
88 ------------------------------
89 Content-Disposition: form-data; name="submit"
90 Content-Type: text/plain
93 ------------------------------
94 Content-Disposition: form-data; name="somename"; filename="somefile.txt"
95 Content-Type: text/plain
98 --------------------------------
100 Host: %HOSTIP:%HTTPPORT
103 Content-Type: multipart/form-data; boundary=----------------------------
105 ------------------------------
106 Content-Disposition: form-data; name="sendfile alternative"; filename="file name 2"
108 this is what we post to the silly web server
110 ------------------------------
111 Content-Disposition: form-data; name="callbackdata"
113 this is what we post to the silly web server
115 ------------------------------
116 Content-Disposition: form-data; name="filename"
119 ------------------------------
120 Content-Disposition: form-data; name="submit"
121 Content-Type: text/plain
124 ------------------------------
125 Content-Disposition: form-data; name="somename"; filename="somefile.txt"
126 Content-Type: text/plain
129 --------------------------------