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 have two ISPs /two routers on my LAN with Windows boxes. Switching default gateway (per PC) works fine, so I can choose my outgoing traffic from particular PC to be initiated from whichever ISP I want.

Is there any way to perform some specific HTTP request through **non-default gateway (while all other requests /browsing etc goes normally through default gateway); ideally with some cmd-line tool (like WGET or CURL)? I tried to search through their manuals, but couldn't find it. Alternatively, some solution in PHP would be fine too.


share|improve this question

closed as off topic by mdpc, Scott Pack, Dennis Kaarsemaker, Ward, kce Jun 12 '13 at 4:09

Questions on Server Fault are expected to relate to server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

Gateway selection is routing.
Routing is handled at the layer below HTTP.

The best you can do is specify a particular source address for your requests (which may send them through a different gateway, depending on your system's network configuration).

Refer to the manual for the software you're using (curl, wget, or other) to determine if this is possible, and what options to specify in order to do it.

share|improve this answer

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