HTTP HTTP GET HTTP proxy CURLOPT_PORT CURLOPT_PROXY # # Server-side HTTP/1.1 200 OK swsclose Date: Tue, 09 Nov 2010 14:49:00 GMT Server: test-server/fake Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT ETag: "21025-dc7-39462498" Accept-Ranges: bytes Content-Length: 6 hello # # Client-side http lib%TESTNUMBER HTTP GET with proxy and CURLOPT_PORT # first URL then proxy http://www.example.com:999/%TESTNUMBER http://%HOSTIP:%HTTPPORT proxy # # Verify data after the test has been "shot" GET http://www.example.com:19999/%TESTNUMBER HTTP/1.1 Host: www.example.com:19999 Authorization: Basic eHh4Onl5eQ== Accept: */* Proxy-Connection: Keep-Alive hello