15 Date: Thu, 09 Nov 2010 14:49:00 GMT
16 Server: test-server/fake swsclose
18 Content-Type: text/html
29 # tool is what to use instead of 'curl'
35 HTTP formpost using form API
41 http://%HOSTIP:%HTTPPORT/650 log/test650.filedata
43 <file name="log/test650.filedata">
44 This is data from a file.
49 # Verify data after the test has been "shot"
52 s/^--------------------------[a-z0-9]*/------------------------------/
53 s/boundary=------------------------[a-z0-9]*/boundary=----------------------------/
55 # Note that the stripping above removes 12 bytes from every occurrence of the
56 # boundary string and since 5 of them are in the body contents, we see
57 # (5*12) == 60 bytes less
60 Host: %HOSTIP:%HTTPPORT
62 Transfer-Encoding: chunked
63 Content-Type: multipart/form-data; boundary=----------------------------
67 ------------------------------
68 Content-Disposition: form-data; name="fieldname"
69 Content-Type: text/plain
70 X-customheader-1: Header 1 data
71 X-customheader-2: Header 2 data
73 this is what we post to the silly web server
74 ------------------------------
75 Content-Disposition: form-data; name="fieldnam"
77 uhis is what we post to the silly web serve
78 ------------------------------
79 Content-Disposition: form-data; name="multifile"
80 Content-Type: multipart/mixed; boundary=----------------------------
82 ------------------------------
83 Content-Disposition: attachment; filename="test650.filedata"
84 Content-Type: application/octet-stream
86 This is data from a file.
88 ------------------------------
89 Content-Disposition: attachment; filename="test650.filedata"
90 Content-Type: text/whatever
92 This is data from a file.
94 ------------------------------
95 Content-Disposition: attachment; filename="test650.filedata"
96 Content-Type: text/whatever
98 This is data from a file.
100 --------------------------------
102 ------------------------------
103 Content-Disposition: form-data; name="filecontents"
105 This is data from a file.
107 ------------------------------
108 Content-Disposition: form-data; name="formlength"
111 ------------------------------
112 Content-Disposition: form-data; name="standardinput"
113 Content-Type: application/octet-stream
117 --------------------------------