Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

http://www.linuxquestions.org/questions/linux-networking-3/i-want-to-use-wget-configured-with-a-wpad-dat-proxy-636922/

Is there any work around?

Thanks in advance

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

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 to wget.

If the file is too complex or changes a lot, you could write a small script in python using the pacparser library.

share|improve this answer
add comment

Your Answer

 
discard

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.