Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Accessing XML through HTTP proxies
Message
De
08/10/2007 11:30:50
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
XML, XSD
Titre:
Accessing XML through HTTP proxies
Divers
Thread ID:
01259463
Message ID:
01259463
Vues:
68
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!).
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform