How do I find out the browser's proxy settings?

前端 未结 4 913
既然无缘
既然无缘 2020-12-01 02:48

I am writing a command-line tool for Windows that uses libcurl to download files from the internet.

Obviously, the downloading doesn\'t work when the user is behind

4条回答
  •  长情又很酷
    2020-12-01 03:24

    For Firefox/Seamonkey, the problem is a bit more tricky because of the existence of many profiles.

    If you want to assume there is only one profile then you just need to find prefs.js. You parse the network.proxy.type, and then use it to decide, which related values to read.

    I'm working on some documents for mozilla, so put your followup questions in here (checked wiki box), and I'll try to give you the info you need.

提交回复
热议问题