Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > webProxy with webClient

Reply
Thread Tools

webProxy with webClient

 
 
Shahid
Guest
Posts: n/a
 
      09-24-2005
hi,

i m trying to access html from a website using vb.net. i wrote following
code to access html of a website. it works fine but whenever i try this code
from network (behind proxy server) , it gives me error " The underlying
connection was closed: Unable to connect to the remote server". i don't know
how to implement proxy class with in WebClient Class.

any kind of help would be greatly appricated


Dim objWC As New System.Net.WebClient
Return New System.Text.UTF8Encoding().GetString( _
objWC.DownloadData("http://www.myweb.com"))

Regards

Shahid
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
WebProxy ignored calling WebMethod Mike Bridge ASP .Net Web Services 0 05-01-2006 10:40 PM
WebProxy with System.Net.WebClient Shahid ASP .Net Security 3 09-25-2005 05:55 AM
Recommend webproxy service MiLi Computer Security 16 10-31-2004 02:37 PM
Impersonation and webproxy credentials Davide Bedin ASP .Net Security 3 03-04-2004 05:50 PM
Impersonation and webproxy credentials Davide Bedin ASP .Net Security 0 03-03-2004 08:33 AM



Advertisments