Hi eskimo
I have no idea to figure out how can I see the URL and host parameters, but I used the following PAC script to test.
Scenario 1:
HTTP request:
GET http://www.example.com/1.jpg HTTP/1.1
PAC script:
function FindProxyForURL(url, host) {
if(url == "http://www.example.com/1.jpg")
return "DIRECT";
else
return "PROXY 127.0.0.1:12345";
}
Result:
Our proxy server still gets the request.
Scenario 2:
HTTP request:
GET http://www.example.com/1.jpg HTTP/1.1
PAC script:
function FindProxyForURL(url, host) {
if(url == "http://www.example.com/")
return "DIRECT";
else
return "PROXY 127.0.0.1:12345";
}
Result:
Our proxy server can't get the request.
And so, I determine that the URL is not the full path, it only contains the domain.