Download file from HTTP request

This forum is not monitored by the SmartFTP staff. If you have a license please contact technical support by email.
Post Reply
codputer
Posts: 4
Joined: Thu Dec 13, 2012 12:21 am

Download file from HTTP request

Post by codputer » Thu Dec 13, 2012 12:26 am

I been asked this question, and I want to make sure SmartFTP can't handle it before I go back to my client. They want to download a file from this HTTP statement.

http://ets.aeso.ca/ets_web/ip/Market/Re ... ntType=csv

Note that the begin date is within the URL, can I create a script that will alter this request before issuing it? Part 2 - the CSV file is not quite a CSV file, as it has a title stuffed into the front of it before the "rows" start repeating. Excel opens and reads this file just fine - so all I need to do is automate the download.

I told them I likely will have to write my own request/response program - but if SmartFTP can handle it - let me know!

Regards,
Richard

mb
Posts: 12030
Joined: Thu Oct 11, 2001 1:24 pm
Display name: Mat (SmartFTP)
Contact:

Re: Download file from HTTP request

Post by mb » Thu Dec 13, 2012 4:35 am

You can use the SmartFTP SDK to do this. Take a look at the transfer queue samples:
https://www.smartftp.com/client/features/sdk

codputer
Posts: 4
Joined: Thu Dec 13, 2012 12:21 am

Re: Download file from HTTP request

Post by codputer » Thu Dec 13, 2012 8:26 pm

I found out that the site also requires a cookie to be set and sent before the requested file is downloaded.

Can all this be scripted queued item, Properties -> Advanced tab?
This means that their is multiple exchanges between the client and the server before the GET request returns the file.

Or do I need to use one of the C# examples, and use the FTP SDK library to make this work?

Thanks,
R

Post Reply