I’m about to be forced to write a script to download some number of files under Windows XP. The machines the script will be run at are all behind a proxy, and the proxy settings are entered into the IE configuration.
What came to my mind was either to somehow call IE from the command line, and using its configuration download files I’d need. Is it even possible using some shell-techniques?
Other option would be to use wget under Win, but I’d need to pass the proxy-settings to it. How to recover those settings from IE configuration?
In principle, I would go for the
wgetapproach rather than usingIEin some way.The path to the configuration script is stored in the registry in
HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections\DefaultConnectionSettings. It is a binary value, the script address starts at position 0x18 and seems ASCII encoded.What I don’t know is if
wgetcan evaluate the script by itself, or if you need to parse it explicitly in your script that would then pass the proxy address towget.