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 mimepost using read callback for the file part
54 http://%HOSTIP:%HTTPPORT/643
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
73 Content-Type: multipart/form-data; boundary=----------------------------
75 ------------------------------
76 Content-Disposition: form-data; name="sendfile"; filename="postit2.c"
78 this is what we post to the silly web server
80 ------------------------------
81 Content-Disposition: form-data; name="callbackdata"
83 this is what we post to the silly web server
85 ------------------------------
86 Content-Disposition: form-data; name="filename"
89 ------------------------------
90 Content-Disposition: form-data; name="submit"
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"
123 ------------------------------
124 Content-Disposition: form-data; name="somename"; filename="somefile.txt"
125 Content-Type: text/plain
128 --------------------------------