47sallo93 / switchy

Automatically exported from code.google.com/p/switchy
0 stars 0 forks source link

"Switch rules" do not support PAC scripts with redirection #431

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use http://www.rz.rwth-aachen.de/pac in a Proxy Profile "A"
2. Use "A" in a Switch Rule (other than the default rule)
3. Save and switch to Auto-Switch Mode.

What is the expected output?
4. The above PAC file should be part of SwitchyAuto.pac

What do you see instead?
5. Note that the above PAC file is not represented in SwitchyAuto.pac

Operating system:
Windows 7

Error Log:
none

Please provide any additional information below. Attach a screenshot if
possible.
Using http://www1.rz.rwth-aachen.de/pac/rwth-anon-proxy.pac in the same Proxy 
Profile as above works! I got this alternative URL here:

D:\>wget http://www.rz.rwth-aachen.de/pac
--2012-02-01 13:58:13--  http://www.rz.rwth-aachen.de/pac
Resolving www.rz.rwth-aachen.de... 137.226.107.31
Connecting to www.rz.rwth-aachen.de|137.226.107.31|:80... connected.
HTTP request sent, awaiting response... 301
Location: http://www1.rz.rwth-aachen.de/pac/rwth-anon-proxy.pac [following]
--2012-02-01 13:58:13--  http://www1.rz.rwth-aachen.de/pac/rwth-anon-proxy.pac
Resolving www1.rz.rwth-aachen.de... 134.130.4.53
Connecting to www1.rz.rwth-aachen.de|134.130.4.53|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3462 (3.4K) [text/plain]
Saving to: `rwth-anon-proxy.pac'

100%[=========================================================================

2012-02-01 13:58:14 (89.3 MB/s) - `rwth-anon-proxy.pac' saved [3462/3462]

But why does the original one not work?

Original issue reported on code.google.com by mr.ber...@gmail.com on 1 Feb 2012 at 1:00

GoogleCodeExporter commented 9 years ago
I noted an "XmlHttpRequest Exception 101" in RuleManager.downloadPacScript - 
could this be due to redirection?

Original comment by mr.ber...@gmail.com on 1 Feb 2012 at 1:01