Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
_webbrowser4 Problem
Message
De
09/04/2004 14:34:11
 
 
À
09/04/2004 09:41:05
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00893527
Message ID:
00893659
Vues:
15
Whenever I have to retreive a file from a web site, I use the following set of commands
cXML = GetURL( "http://www.SomeDomain.com/TheFolder/TheFile.xml" )

function GetURL( cURL )

   LOCAL oXMl, cXML
   *- Create an instance of the XML object.
   oXML = CreateObject("Msxml2.XMLHTTP")
 
   *- Open a connections to the server.  The .F. tells it to wait at the SEND connamd to finish before proceeding.
   oXML.Open( "GET", cURL  , .F. )
   *- tell the try of file 
   oXML.setRequestHeader( "Content-Type", "application/x-www-form-urlencoded" )
   *- Send the request.
   oXML.Send()

   *- When done, the ResponseText property will hold the entire XML file.
   cXML = oXML.responseText

   return cXML
endproc 
Hope it helps.
Greg Reichert
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform