I want to use wget through a proxy which uses .pac config.
When I googled a bit, I found that .pac is a javascript file and wget cannot parse it based on the following url
Is there any work around?
Thanks in advance
wget
I want to use wget through a proxy which uses .pac config.
When I googled a bit, I found that .pac is a javascript file and wget cannot parse it based on the following url
Is there any work around?
Thanks in advance
Best Answer
If the
.pac
file does not change too often (in my experience they do not), you can just read the file, and find the right proxy to give towget
.If the file is too complex or changes a lot, you could write a small script in python using the pacparser library.