Changing proxy settings

Post Reply
mjacobson
Posts: 204
Joined: Fri Feb 08, 2002 3:35 pm

Changing proxy settings

Post by mjacobson »

I need to be able to use different proxies during a walk depending on domain address. Currently we have 4 different proxies for different domains. With our browsers, we point to a proxy-pac file that does this for us. Is there a way with Webinator to do this, or can I point Webinator to the proxy-pac script to handle this setting for me?

Thanks,
User avatar
John
Site Admin
Posts: 2622
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

Changing proxy settings

Post by John »

Webinator does not currently support proxy-pac files. What you could do, assuming version 5 scripts, is in the start function before the call to <doprimer> use vortex to determine and set the proxy at that point.
John Turnbull
Thunderstone Software
kaiserpe
Posts: 2
Joined: Thu Sep 29, 2005 11:53 am

Changing proxy settings

Post by kaiserpe »

Can anyone clue me in on how to do this? I see a regular expression in there, but how do I:

a. Check for a specific URL partial / full match
b. Set up a conditional to switch to a different proxy based on that match?

Thanks,
Paul
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

Changing proxy settings

Post by mark »

Here's one way

<switch $u><!-- or whatever var has the url -->
<case matches 'http://site1*'><urlcp proxy 'http://proxy1'>
<case matches 'http://site2*'><urlcp proxy 'http://proxy2'>
<default><urlcp proxy "">
</switch>
Post Reply