Last week I published a simple method which downloads (and then stores in a local file) a file from the internet.

But, the above method won't work if you are using your application on a computer connected to the internet behind a proxy server. To solve this little problem you have to set the properties of your virtul machine. 

It is really simple, in the method that initializes your application, add the following couple of lines