Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to capture webpage HTML into string variable
Message
From
16/08/2004 17:13:27
 
 
To
16/08/2004 08:38:20
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00933478
Message ID:
00933691
Views:
22
>
>  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.
Previous
Reply
Map
View

Click here to load this message in the networking platform