Re: proxy support

From: Tom Porterfield (tpporter_at_mvps.org)
Date: 02/01/05


Date: Tue, 1 Feb 2005 12:34:25 -0500

On Tue, 1 Feb 2005 11:04:45 -0600, Scott wrote:

> We have a c# webform application that uses ASP.NET webservices to
> communicate with our IIS server over the public internet. The customer is
> complaining that our application is using their default gateway to
> communicate rather than their proxy server. I was under the impression that
> the SoapHttpClientProtocol framework class used Internet Explorer's settings
> for proxy server configuration/usage and asked the customer to make sure
> I.E. was configured for use with their proxy server. He said I.E. was
> configured as such but that our application still was using their default
> gateway for web service communications over the public internet. My
> question is:
>
> 1. Is there some way programatically to force a web service client to use a
> proxy server instead of default gateway?
>
> 2. Do I need to edit some .net configuration file to force the proxy server
> to be used by the SoapHttpClientProtocol framework class.

Have you tried myClient.Proxy = WebProxy.GetDefaultProxy()? That won't
work if the IE proxy settings are dynamic, generated from script, from
autoconfig entries or from DHCP or DNS lookups. If that's the case, create
your own instance of WebProxy and set the appropriate values.

-- 
Tom Porterfield


Relevant Pages

  • RE: IPNAT / IPF / rdr issue
    ... back in thru the same gateway is not going to fly. ... > request has to go to your ISP DNS server to get your public ip ... > # or from this gateway server destine for the public Internet. ... > pass out quick on dc0 proto icmp from any to any icmp-type 8 keep ...
    (freebsd-questions)
  • question about routing
    ... Anyhow, bought recently a server to experiment with and finaly i would colocated it, but at home.. ... But this network is connect to my other network192.168.1.1 (gateway). ... How do i configure debian to communicate to the outsided.. ...
    (Debian-User)
  • Help with IPFW + NATD + Passive FTP
    ... passive FTP connections through IPFW with NATD enabled. ... $cmd 005 allow all from any to any via dc0 ... # Interface facing Public internet ... # Allow out access to my ISP's Domain name server. ...
    (freebsd-questions)
  • RE: IPNAT / IPF / rdr issue
    ... All your clients are on the LAN behind the gateway correct. ... > request has to go to your ISP DNS server to get your public ip ... > block out log first quick on dc0 all ...
    (freebsd-questions)
  • Re: Adding a web interface to an exisiting server.
    ... You just need a secondary process/thread ... We did save data in memory to db whenever it changes. ... the parts communicate more efficiently. ... version of the server program. ...
    (comp.programming)