HTTP
CURLOPT_CURLU
#
# Similar to 1518 but using CURLOPT_CURLU
#
# Server-side
HTTP/1.1 200 OK
Date: Thu, 17 Mar 2016 14:41:00 GMT
Server: test-server/fake
X-Special: swsclose
Content-Length: 0
Connection: close
HTTP/1.1 302 redirect
Date: Thu, 17 Mar 2016 14:41:00 GMT
Server: test-server/fake
Content-Type: text/plain; charset=US-ASCII
Location: ../%TESTNUMBER0002
Content-Length: 0
Connection: close
# Client-side
http
# tool is what to use instead of 'curl'
lib%TESTNUMBER
CURLOPT_CURLU, URL with space and CURLINFO_EFFECTIVE_URL
"http://%HOSTIP:%HTTPPORT/ /with/ space/ /file"
#
# Verify data after the test has been "shot"
GET /%20/with/%20space/%20/file HTTP/1.1
Host: %HOSTIP:%HTTPPORT
Accept: */*
GET /%20/with/%20space/%TESTNUMBER0002 HTTP/1.1
Host: %HOSTIP:%HTTPPORT
Accept: */*
res 0
status 200
redirects 1
effectiveurl http://%HOSTIP:%HTTPPORT/%20/with/%20space/%TESTNUMBER0002
redirecturl blank
0