Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Accessing XML through HTTP proxies
Message
From
08/10/2007 11:30:50
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Title:
Accessing XML through HTTP proxies
Miscellaneous
Thread ID:
01259463
Message ID:
01259463
Views:
69
Hi all VFP gurus,

We have a VFP application calling Internet XML resources via HTTP. Works fines on standalone station or on an un-protected Intranet. But fails miserably when the resources has to go thru proxy.

The VFP syntax for retrieving resources is the following:

LPARAMETER cURLString,cProxyAddress,cProxyPasswor,cProxyPassword

** the HTPP 4.0 library was properly installed
** moving through XML using the proxy-aware object
oXMLParser = CREATEOBJECT("MSXML2.ServerHTTP")

** fetching the XML
WITH oXMLParser
.Open("GET",cURLString,.F.)
IF NOT EMPTY(cProxyAddress)
.SetProxy(2,cProxyAddress,"")
.SetProxyCredentials(cProxAccount,cProxyPassword)
ENDIF
.Send()
ENDWITH

** parsing the XML (runs fine)
** not a problem


We have a client that uses the application from within a protected environment (a top european corporation).

The IT network guy in charge of testing our application that installs, runs locally but won't use the HTTP resources. He told me that the browser (IE I reckon) is calling http stuff using proxypack settings.

I said that he should document the proxy address (mynetworkProxy:MyPort) and the bundled userAccount/Password properly. He said that the XML won't still go through.

Any pointer is welcome since I am dead stuck on this (no equivalent network configuration here!).
Next
Reply
Map
View

Click here to load this message in the networking platform