HTTP HTTP GET HTTP proxy CURLOPT_PROXY CURLOPT_NOBODY CURLINFO_USED_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 CURLINFO_USED_PROXY # provides: # 0 - the proxy URL # 1 - the non-proxy using URL # 2 - the CURLOPT_RESOLVE string to change IP for the name # http://%HOSTIP:%HTTPPORT goingdirect.com:%HTTPPORT goingdirect.com:%HTTPPORT:%HOSTIP proxy # # Verify data after the test has been "shot" GET http://usingproxy.com/ HTTP/1.1 Host: usingproxy.com Accept: */* Proxy-Connection: Keep-Alive GET / HTTP/1.1 Host: goingdirect.com:%HTTPPORT Accept: */* hello This used the proxy hello This DID NOT use the proxy