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 265841
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T22:48:16+00:00 2026-05-11T22:48:16+00:00

I am talking to a webservice via a webrequest, I am behind a proxy

  • 0

I am talking to a webservice via a webrequest, I am behind a proxy that requires authentication.

What I would like to do is piggyback off the IE / Control Panel settings but I am having some difficulty…

if I do this, all is fine…

  WebProxy proxy = new WebProxy(@"http://my.secret.address:8080");
  proxy.Credentials = CredentialCache.DefaultNetworkCredentials; 
  WebRequest.DefaultWebProxy = proxy;

What I really want to do is simply this…

WebRequest.DefaultWebProxy = WebRequest.GetSystemWebProxy(); // Subsequent webrequest call Fails with a "Unable to connect to remote server" error message.

I really do not want to have to specify the proxy address, as it is not the same for all users. In fact some won’t even be behind a proxy. I just want to use the IE /Control Panel settings. Oh I am using Vista in case that makes a difference, and also the proxy settings in th econtrol panel / IE are using an auto config file (proxy.pac file)

Edit: So succinctly. How do I use the IE / Control Panel proxy settings. Including when using an Auto configuration file ?

Further Edit:

Ok, I think I have narrowed down the problem to the Auto Config thing. If I have the proxy address explicitly set in the dialog I can use the .GetSystemWebProxy() settings…but (like in my case) if I am using an Auto Config pac file, I have this issue.

alt text http://img40.imageshack.us/img40/5635/57955210.jpg

  • 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-11T22:48:16+00:00Added an answer on May 11, 2026 at 10:48 pm

    sigh, well after more investigation I fixed this problem just to get a different one….

    The fix is to create the WebProxy with the .pac Uri

    WebProxy proxy = new WebProxy(@"http://blahblah/proxy.pac);
    

    Easy peasy…

    So now I am getting through the proxy, but the Proxy server is messing with my request and the web service is barffing. (Note it doesn’t do it if I am specific about the proxy address….sigh)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm talking with a web service with a generated proxy that uses System.Web.Services.Protocols.SoapHttpClientProtocol ,
If I have an https webservice behind a firewall on a machine (A) that
i'm building a mobile app talking to my symfony2 app via webservices I can't
Im talking about performing a deep recursion for around 5+ mins, something that you
Im trying to get a page talking to a webservice through jquery. this is
I'd like to know if there is a DOM event to listen for that
I need to implement SAML 2.0 for a WCF client that is talking to
I'm dealing with a SOAP webservice call from a server that is expecting to
I've a Silverlight 3 based project, talking with a DB via a WCF web
I have a webservice in java that receives a list of information to be

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.