Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Downloading files from IE using VFP
Message
 
À
22/05/2003 14:08:14
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00791605
Message ID:
00791849
Vues:
30
I don't have a slick or sophisticated way to do this but here's what I would do
in a case like this.

1. I would use ClrScript http://clrsoftware.com/clrscript/index.htm to find out the names of the fields
on the web page you need to login to. ClrScript takes just a little getting used
to but there a pre written script. You give it the url of the web page, it comes back
with the names of the fields. Sample scripts are at
http://clrsoftware.com/clrscript/samples.htm and if you want, look at
http://clrsoftware.com/clrscript/samples/GenerateSetFormFields.csp.txt.

2. Once you know the names of the fields, you can use either ClrScript or VFP to
automate the process of logging in.

3.a. Both programs can also grab the text of the page you have logged into.
You can then search for the name of the last file.

3.b. Or, you can ask ClrScript to give you a list of all of the text links on
a page. http://clrsoftware.com/clrscript/samples/FollowTextLinks.csp.txt
The file you want, probably appears as Text Link. The kind that you would
click on, then something starts to happen.

4. I usually, work this out from VFP, calling scripts from ClrScript as needed, each
one writes an asci file to disk that VFP then reads. I use VFP to log in to
a web page. Can forward my VFP prg if you would like.

5. However, while I have grabbed text from a web page, I have never had to
ask VFP to download a file, so don't know the particular syntax for that command.

Hope this will be of some help.
Steve
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform