Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Downloading files using XMLHTTP
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Internet applications
Title:
Downloading files using XMLHTTP
Miscellaneous
Thread ID:
01297542
Message ID:
01297542
Views:
67
Hi,

I'm having a little problem when I try to download some files using XMLHTTP. Maybe you can help me!

There is a page (intranet) to find process and download some files. So, users types process code and a list of files is showed, like this:

http://10.29.1.5/consulta/up.php?arq=001.doc

http://10.29.1.5/consulta/up.php?arq=002.doc

http://10.29.1.5/consulta/up.php?arq=003.doc

Until here, everthing goes fine. I can get each link using IE automation. Now, I have to download each file and save it on hd. I tried to do this:

loXMLHTTP.open("GET", 'http://10.29.1.5/consulta/up.php?arq=001.doc', .F.)
loXMLHTTP.Send()
? loXMLHTTP.responseBody

And I got this message: Session Closed

So, when I use XMLHTTP, I can't get the correct link to download the file. If I click on link (inside Internet Explorer), the download works, I mean, MessageBox: Run, Save, Cancel appears but I can't handle this download.

In addition, I don't have access to PHP code, neither support.

Any idea?

Thanks in advanced!
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Rodolfo Duarte
Reply
Map
View

Click here to load this message in the networking platform