Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to open/read a web-page
Message
De
16/10/2008 05:14:14
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01355244
Message ID:
01355314
Vues:
17
>It may sound stupid, but I don't know how to open in ascii(source) any page on the internet.
>What is the way : fopen or some API-function or some foundation-class.
>I must search for example http://www.gsd-software.nl/index.htm for some particular html-code in the document, e.g. the tag "title".
>
>Any help or hint is welcome.
lcUrl = "http://www.gsd-software.nl/index.htm"
lcLocalFile = Forcepath(Sys(2015)+'.htm', Sys(2023))
If getFileFromURL(m.lcUrl,m.lcLocalFile)
  * Do whatever
  Erase (m.lcLocalFile)
Endif


Procedure getFileFromURL
  Lparameters tcRemoteFile,tcLocalFile
  Declare Integer URLDownloadToFile In urlmon.Dll;
    INTEGER pCaller, String szURL, String szFileName,;
    INTEGER dwReserved, Integer lpfnCB
  Return URLDownloadToFile(0, m.tcRemoteFile, m.tcLocalFile, 0, 0) = 0
Endproc
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform