Im creating a small application which I want to tell me the weather in my country and area. It needs to fetch a picture from the Internet. When I connect to web sites outside of my network, I need to enter user name and password. How do I tell the server what my user name and password is? This code works fine if I get a picture from my local intranet, as this doesnt require authentication.
I had a look at that link, but it didnt really help me. This is how I solved the problem. I added these four lines of code to the beginning of my main program.