Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7629913
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T05:57:49+00:00 2026-05-31T05:57:49+00:00

I want to connect URL via proxy server but when I am using proxy

  • 0

I want to connect URL via proxy server but when I am using proxy and try to get response it returns (403) Forbidden .

Without proxy everything works .

  private void button1_Click(object sender, EventArgs e)
    {
        CookieContainer cookies = new CookieContainer();
        HttpWebRequest webRequest = (HttpWebRequest)WebRequest.Create("http://wikipedia.com");
        webRequest.Proxy = new WebProxy("41.217.193.6", 80);    
        webRequest.CookieContainer = cookies;
        webRequest.Accept = "*/*";
        webRequest.Timeout = 9000;

        HttpWebResponse response = (HttpWebResponse)webRequest.GetResponse();     /// <== The remote server returned an error: (403) Forbidden.
        StreamReader responseReader = new StreamReader(response.GetResponseStream());
        string sResponseHTML = responseReader.ReadToEnd();

            Clipboard.SetText(sResponseHTML);
    }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T05:57:51+00:00Added an answer on May 31, 2026 at 5:57 am

    I think the proxy (“41.217.193.6”, 80) needs authentication. If you try a new proxy, the code above works. For example, at the time of writing, the following proxy works.

    webRequest.Proxy = new WebProxy("200.61.168.141", 8080);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to connect to a web-server (a page) via a simple URL which
I want to connect from home using SQL Server 2005 to another PC. I
I want to connect to a server using HTTP, send a string to it
I want to connect to DB using the iSeries Client Access driver. I use
I just installed VS2010 and I want to connect to TFS, But I don't
I have a box built via html borders. I want to connect the bottom
I want to download a zip file via a url. And I want to
I want to connect to a my facebook application using the facebook java api
I have a gwt-application and want to connect to it's xmlrpc backend via a
I trying to check if an URL which I want to connect to exists

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.