Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question

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 == '') {
        return 'PROXY;
    return 'DIRECT';
share|improve this answer
Which of course would not force anything :-) – guntbert Feb 14 '13 at 21:33
@guntbert You can always deny it on the server to prevent incorrectly configured clients from access it directly. – mgorven Feb 14 '13 at 21:35
You are assuming that they have control over the web server? In that case you are right. – guntbert Feb 14 '13 at 21:43

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.