HTTP
HTTP FORMPOST
#
# Server-side
HTTP/1.1 200 OK
Date: Tue, 09 Nov 2010 14:49:00 GMT
Content-Length: 10
contents1
HTTP/1.1 200 OK
Date: Tue, 09 Nov 2010 14:49:00 GMT
Content-Length: 10
contents2
#
# Client-side
Mime
http
HTTP form posts with handle reset
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -F 'name=a;filename=a.pdf' --next http://%HOSTIP:%HTTPPORT/%TESTNUMBER -F 'name=b;filename=b.jpg'
#
# Verify data after the test has been "shot"
^(Content-Type: multipart/form-data;|------------).*
POST /%TESTNUMBER HTTP/1.1
Host: %HOSTIP:%HTTPPORT
User-Agent: curl/%VERSION
Accept: */*
Content-Length: 201
Content-Disposition: form-data; name="name"; filename="a.pdf"
Content-Type: application/pdf
a
POST /%TESTNUMBER HTTP/1.1
Host: %HOSTIP:%HTTPPORT
User-Agent: curl/%VERSION
Accept: */*
Content-Length: 196
Content-Disposition: form-data; name="name"; filename="b.jpg"
Content-Type: image/jpeg
b