Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to download file from a https link?
Message
From
24/11/2003 14:07:33
 
 
To
24/11/2003 12:30:16
Mike Zhu
Icube Info International
Fremont, California, United States
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00852988
Message ID:
00853020
Views:
16
>Urgent! How can I download a XML file from a security site like https://www.mycompany.com/xml/test.php
> username=username
> password=password
> formAction=request
>
>
Here we go urgent for Mike :)
LOCAL loHTTP as MSXML2.XMLHTTP 
WAIT WINDOW "Downloading file." 

loHTTP = CREATEOBJECT("MSXML2.XMLHTTP") 
loHTTP.open("GET","http://www.host.com/VFPtestfile.xml",.F.) 

loHTTP.send() 
WAIT CLEAR 

STRTOFILE(loHTTP.responseBody, "\myfile.xml") 

loHTTP = null 
HTH

Claudio
"Now to him who is able to do immeasurably more than all we ask or imagine, according to his power that is at work within us, Ephesians 3:20
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform