Getting NETMassDownloader to work behind proxy

Posted on February 11, 2008. Filed under: Uncategorized |

After struggling for few minutes, I added code to NETMassDownloader to provide proxy credentials.

Steps:

Download NETMassDownloader source from CodePlex. Open the solution in Visual Studio.

In DownloadLibrary project open PDBWebClient.cs. In the constructor add the following code:

  public PDBWebClient()

  {

//...

//...

  base.Proxy = new System.Net.WebProxy(new Uri("webproxyUri"));

  base.Proxy.Credentials = new System.Net.NetworkCredential("username", "password", "domain");

 } Build the solution and run it. It should work without hitches.    

Updated (18-2-2008): Kerem has made v 1.2 available. This takes proxy details as parameter. You can download it here. Thanks Kerem.

Advertisements

Make a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

3 Responses to “Getting NETMassDownloader to work behind proxy”

RSS Feed for A Glitch in Code Takes Nine Department Comments RSS Feed

You can download version 1.2 which solves this issue.

Thanks Kerem. Great tool from you.

Some really usefull information here if you pay attention, thanks


Where's The Comment Form?

Liked it here?
Why not try sites on the blogroll...

%d bloggers like this: