Information générale
Titre:
Accessing XML through HTTP proxies
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement