HTTP URL API CURLOPT_CURLU CURLOPT_FOLLOWLOCATION # Server-side HTTP/1.1 302 OK Content-Length: 6 Location: /%TESTNUMBER0002 -foo- HTTP/1.1 200 OK Content-Length: 11 redirected redirected redirected # Client-side http # tool is what to use instead of 'curl' lib%TESTNUMBER re-run redirected transfer without setting CURLU URL again http://%HOSTIP:%HTTPPORT/%TESTNUMBER GET /%TESTNUMBER HTTP/1.1 Host: %HOSTIP:%HTTPPORT Accept: */* GET /%TESTNUMBER0002 HTTP/1.1 Host: %HOSTIP:%HTTPPORT Accept: */* GET /%TESTNUMBER HTTP/1.1 Host: %HOSTIP:%HTTPPORT Accept: */* GET /%TESTNUMBER0002 HTTP/1.1 Host: %HOSTIP:%HTTPPORT Accept: */*