webProxy with webClient

S

Shahid

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top