HTTPDownload

Hi,

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.
hi Joerg,
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
string myStr
easyHttp "http://www.wavemetrics.com", myStr

to open a file and read it all in in one operation:
string myStr
easyHttp "file:///C:myfile.dat", myStr

to copy a file to another file:
string myStr
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.