Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Call a URL from the VFP 9 app?
Message
 
 
À
14/01/2021 14:55:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01677841
Message ID:
01677843
Vues:
60
>>Hi,
>>
>>How would you write a code to call a URL from the VFP application? As if a user clicked on this URL. Specifically, I want to create a small PRG to call a URL every 1 or 2 minutes? Basically a FOR loop and then call this URL?
>>
>>How would you do it?
>>
>>TIA
>
>If you just want to retrieve the contents of a URL then I suggest getting a quality comms library. I use Chilkat from https://www.chilkatsoft.com/ - they have a great, feature rich libary and great support. Excecllent help documentation complete with VFP examples that you can just copy/paste in to your own apps. Can try before buying too.

No, I don't want to retrieve a content of a URL. Here is an example. Suppose I want to call the URL "www.msn.com" from a VFP 9 code. Here is a pseudo code:
cUrl = "www.msn.com"
for i = 1 to 100
      *--  Call the cUrl as if a browser is opened and the cURL is entered. This is what I don't know how to do.
      wait(20)
next
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform