Hi,
In JAVA I can by pass the proxy using these lines of code:
System.getProperties().put( "proxySet", "true" );
System.getProperties().put( "proxyHost", "web-proxy" );
System.getProperties().put( "proxyPort", "8088" );
But when I move this code to J# for an ASP.Net page it does not affect
anything. When I run the page from home (no proxy present) I can connect to
the server. When I add the above code to the project and run it from home it
STILL connects to the server so I know these lines are not doing a thing.
Even Microsoft's J# .Net code to bypass a proxy server does NOT work (or at
least how I'm doing it. Maybe my understanding of all this is off):
WebProxy proxyObject = new WebProxy("web-proxy:8088", true);
proxyObject.set_BypassProxyOnLocal(true);
GlobalProxySelection.set_Select(proxyObject);
The above J# .Net code doesn't affect the asp.net page from connecting to
the outside server at home even when the code is present or commented out.
I had to convert a JAVA program to J# to make it a web page in .Net.
Basically the page connects to a shipping carrier's XML server to get data.
The code works in JAVA and the J# page works at home but NOT at work.
So I'm wondering if there is something else I need to do to get this JAVA
code to work in J#?
Thanks!
Andrew
Lars-Inge T?nnessen - 04 Feb 2004 18:03 GMT
http://msdn.microsoft.com/library/en-us/cpref/html/frlrfSystemWebServicesProtoco
lsHttpWebClientProtocolClassProxyTopic.asp
In this example they specify the protocol (http). Do you think that could
help?
IWebProxy proxyObject = new WebProxy("http://proxyserver:80", true);

Signature
Regards,
Lars-Inge Tonnessen
http://emailme.larsinge.com
http://www.larsinge.com
> WebProxy proxyObject = new WebProxy("web-proxy:8088", true);