HTTPDownload
joerg.kunze
we have in Igor a nice FTPDownload command. I just have to access huge piles of data from ordinary HTTP-webservers without login and password. FTPDownload does not work on these. So a HTTPDownload command would be nice.
Regards,
Jörg.
check out the easyHttp xop (http://www.igorexchange.com/project/easyHttp) it deals with and uses URL's.
i.e. HTTP, SFTP, SCP , FTP, SFTP, HTTPS, FILE, authentication, proxy negotiation, etc.
Some examples:
To get a webpage into the S_getHttp global string:
easyHttp "http://www.wavemetrics.com"
to save it to a file:
easyHttp/FILE="C:myfile.html" "http://www.wavemetrics.com
to read it into your own string
easyHttp "http://www.wavemetrics.com", myStr
to open a file and read it all in in one operation:
easyHttp "file:///C:myfile.dat", myStr
to copy a file to another file:
easyHttp/FILE="c:myfile2.dat" "file:///C:myfile.dat"
The XOP is cross platform. How fast you get the data depends on your bandwidth, but there is also a threadsafe version of the easyHttp command in the same XOP.
If you have any suggestions for improvements please let me know.
A.
October 8, 2009 at 01:49 pm - Permalink