15 Date: Thu, 09 Nov 2010 14:49:00 GMT
\r
16 Server: test-server/fake swsclose
\r
18 Content-Type: text/html
\r
24 Date: Thu, 09 Nov 2010 14:49:00 GMT
\r
25 Server: test-server/fake swsclose
\r
27 Content-Type: text/html
\r
31 Date: Thu, 09 Nov 2010 14:49:00 GMT
\r
32 Server: test-server/fake swsclose
\r
34 Content-Type: text/html
\r
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
\r
72 Transfer-Encoding: chunked
\r
73 Content-Type: multipart/form-data; boundary=----------------------------
\r
74 Expect: 100-continue
\r
77 ------------------------------
\r
78 Content-Disposition: form-data; name="sendfile"; filename="postit2.c"
\r
80 this is what we post to the silly web server
82 ------------------------------
\r
83 Content-Disposition: form-data; name="callbackdata"
\r
85 this is what we post to the silly web server
87 ------------------------------
\r
88 Content-Disposition: form-data; name="filename"
\r
91 ------------------------------
\r
92 Content-Disposition: form-data; name="submit"
\r
95 ------------------------------
\r
96 Content-Disposition: form-data; name="somename"; filename="somefile.txt"
\r
97 Content-Type: text/plain
\r
100 --------------------------------
\r
105 Host: %HOSTIP:%HTTPPORT
\r
107 Transfer-Encoding: chunked
\r
108 Content-Type: multipart/form-data; boundary=----------------------------
\r
109 Expect: 100-continue
\r
112 ------------------------------
\r
113 Content-Disposition: form-data; name="sendfile alternative"; filename="file name 2"
\r
115 this is what we post to the silly web server
117 ------------------------------
\r
118 Content-Disposition: form-data; name="callbackdata"
\r
120 this is what we post to the silly web server
122 ------------------------------
\r
123 Content-Disposition: form-data; name="filename"
\r
126 ------------------------------
\r
127 Content-Disposition: form-data; name="submit"
\r
130 ------------------------------
\r
131 Content-Disposition: form-data; name="somename"; filename="somefile.txt"
\r
132 Content-Type: text/plain
\r
135 --------------------------------
\r