15 Date: Thu, 09 Nov 2010 14:49:00 GMT
16 Server: test-server/fake swsclose
18 Content-Type: text/html
24 Date: Thu, 09 Nov 2010 14:49:00 GMT
25 Server: test-server/fake swsclose
27 Content-Type: text/html
31 Date: Thu, 09 Nov 2010 14:49:00 GMT
32 Server: test-server/fake swsclose
34 Content-Type: text/html
45 # tool is what to use instead of 'curl'
51 HTTP multi-part chunked mimepost using read callback for the file part
54 http://%HOSTIP:%HTTPPORT/645
59 # Verify data after the test has been "shot"
62 s/^--------------------------[a-z0-9]*/------------------------------/
63 s/boundary=------------------------[a-z0-9]*/boundary=----------------------------/
65 # Note that the stripping above removes 12 bytes from every occurrence of the
66 # boundary string and since 5 of them are in the body contents, we see
67 # (5*12) == 60 bytes less
70 Host: %HOSTIP:%HTTPPORT
72 Transfer-Encoding: chunked
73 Content-Type: multipart/form-data; boundary=----------------------------
77 ------------------------------
78 Content-Disposition: form-data; name="sendfile"; filename="postit2.c"
80 this is what we post to the silly web server
82 ------------------------------
83 Content-Disposition: form-data; name="callbackdata"
85 this is what we post to the silly web server
87 ------------------------------
88 Content-Disposition: form-data; name="filename"
91 ------------------------------
92 Content-Disposition: form-data; name="submit"
95 ------------------------------
96 Content-Disposition: form-data; name="somename"; filename="somefile.txt"
97 Content-Type: text/plain
100 --------------------------------
105 Host: %HOSTIP:%HTTPPORT
107 Transfer-Encoding: chunked
108 Content-Type: multipart/form-data; boundary=----------------------------
112 ------------------------------
113 Content-Disposition: form-data; name="sendfile alternative"; filename="file name 2"
115 this is what we post to the silly web server
117 ------------------------------
118 Content-Disposition: form-data; name="callbackdata"
120 this is what we post to the silly web server
122 ------------------------------
123 Content-Disposition: form-data; name="filename"
126 ------------------------------
127 Content-Disposition: form-data; name="submit"
130 ------------------------------
131 Content-Disposition: form-data; name="somename"; filename="somefile.txt"
132 Content-Type: text/plain
135 --------------------------------