Thanks for all of your help so far!

I've had a look at the code, and obviously I need to include the wininet dll. However, for some reason, when I try to make a reference to wininet.dll, it gives me an error saying that it cannot add the reference. Is there maybe an alternative method, or a built in version of InternetSetOption()?