webProxy with webClient

Discussion in 'ASP .Net Security' started by Shahid, Sep 24, 2005.

  1. Shahid

    Shahid Guest

    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
     
    Shahid, Sep 24, 2005
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. yysiow

    WebClient Problem

    yysiow, Jul 10, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    474
    Sandeep Alur
    Jul 10, 2003
  2. Davide Bedin

    Impersonation and webproxy credentials

    Davide Bedin, Mar 3, 2004, in forum: ASP .Net Security
    Replies:
    3
    Views:
    272
    Alek Davis
    Mar 4, 2004
  3. Davide Bedin

    Impersonation and webproxy credentials

    Davide Bedin, Mar 3, 2004, in forum: ASP .Net Security
    Replies:
    0
    Views:
    135
    Davide Bedin
    Mar 3, 2004
  4. Shahid

    WebProxy with System.Net.WebClient

    Shahid, Sep 24, 2005, in forum: ASP .Net Security
    Replies:
    3
    Views:
    853
    Shahid
    Sep 25, 2005
  5. Mike Bridge

    WebProxy ignored calling WebMethod

    Mike Bridge, May 1, 2006, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    200
    Mike Bridge
    May 1, 2006
Loading...

Share This Page