Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to capture webpage HTML into string variable
Message
De
16/08/2004 17:13:27
 
 
À
16/08/2004 08:38:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00933478
Message ID:
00933691
Vues:
21
>
>  loXmlHttp = CREATEOBJECT( "Microsoft.XMLHTTP" )
>  IF VARTYPE(loXMLHTTP) = "O"
>     lcURL = "http://fox.wikis.com/wc.dll?Wiki~OtherVFPCommunities"
>     loXmlHttp.open( "GET", lcURL, .F. )
>     loXMLHTTP.Send()
>     STRTOFILE(loXMLHTTP.ResponseText,"c:\temp\temp.txt",1)
>     MODIFY FILE c:\temp\temp.txt
>   ELSE
>      MESSAGEBOX("Problem with XMLHTTP object")
>   ENDIF
>
>
>
>>as if FILETOSTR() FUNCTION!
>>
>>Thanks

Well, it is also good and simple although problem is STRTOFILE error.
if ResposeText is too large.

Try to capture the following link, you will know the error.
http://www.hkjcfootball.com/hk/english/odds/alltypes.asp


thank you.
The weak wait for chance, The strong bid for chance,
The clever notch up chance, but The merciful give you chance.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform