1

I need to force one specific HTTP request through a web proxy whereas the rest of the HTTP requests should directly go to the web server.

I can use error code 305 Use Proxy response to redirect my client, but I'm not sure if that would be supported by my client's underlying HTTP stack.

Do any other options exist to accomplish this?

user947914
  • 121
  • 3

1 Answers1

1

You can use a PAC file to make the browser choose the proxy based on the URL. For example:

function FindProxyForURL(url, host) {
    if (url == 'http://example.com/blah') {
        return 'PROXY cache.example.org:3128;
    }
    return 'DIRECT';
}
mgorven
  • 30,615
  • 7
  • 79
  • 122