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 occurance 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 Expect: 100-continue
\r
73 Content-Type: multipart/form-data; boundary=----------------------------
\r
75 ------------------------------
\r
76 Content-Disposition: form-data; name="sendfile"; filename="postit2.c"
\r
78 this is what we post to the silly web server
80 ------------------------------
\r
81 Content-Disposition: form-data; name="callbackdata"
\r
83 this is what we post to the silly web server
85 ------------------------------
\r
86 Content-Disposition: form-data; name="filename"
\r
89 ------------------------------
\r
90 Content-Disposition: form-data; name="submit"
\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: 732
\r
103 Expect: 100-continue
\r
104 Content-Type: multipart/form-data; boundary=----------------------------
\r
106 ------------------------------
\r
107 Content-Disposition: form-data; name="sendfile alternative"; filename="file name 2"
\r
109 this is what we post to the silly web server
111 ------------------------------
\r
112 Content-Disposition: form-data; name="callbackdata"
\r
114 this is what we post to the silly web server
116 ------------------------------
\r
117 Content-Disposition: form-data; name="filename"
\r
120 ------------------------------
\r
121 Content-Disposition: form-data; name="submit"
\r
124 ------------------------------
\r
125 Content-Disposition: form-data; name="somename"; filename="somefile.txt"
\r
126 Content-Type: text/plain
\r
129 --------------------------------
\r