HTTP
HTTP POST
HTTP MIME
#
# Server-side
HTTP/1.1 200 OK swsclose
Date: Tue, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake
Content-Length: 3
OK
HTTP/1.1 200 OK swsclose
Date: Tue, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake
Content-Length: 3
OK
HTTP/1.1 200 OK swsclose
Date: Tue, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake
Content-Length: 3
OK
# Client-side
Mime
http
# tool to invoke
lib%TESTNUMBER
CURLOPT_MIMEPOST first set then set to NULL
http://%HOSTIP:%HTTPPORT/%TESTNUMBER
#
# Verify data after the test has been "shot"
s/^--------------------------[A-Za-z0-9]*/--------------------------/
s/boundary=------------------------[A-Za-z0-9]*/boundary=------------------------/
POST /%TESTNUMBER HTTP/1.1
Host: %HOSTIP:%HTTPPORT
Accept: */*
Content-Length: 156
Content-Type: multipart/form-data; boundary=------------------------
--------------------------
Content-Disposition: form-data; name="fake"
party
----------------------------
POST /%TESTNUMBER HTTP/1.1
Host: %HOSTIP:%HTTPPORT
Accept: */*
Content-Length: 0