views:

22

answers:

1

Hi All,

I need to make an outbound ftp request to retrieve a number of small files. There are 6 files each less than 10K and I only need to retrieve them once every couple of hours.

When I try to do this with urllib2.urlopen("ftp://xxx.xxx.xxx") I get an exception AttributeError: 'module' object has no attribute 'FTP_PORT'.

I have read through the documentation and see you are only allowed to make http and https requests from the appengine, unfortunately my application needs to consume the ftp data, does this requirement mean I can't use the appengine at all ? I sincerely hope not.

So has anyone else here found a way to make ftp requests, perhaps with a paid account ? And if not what have other people chosen to do ? does azure or ec2 allow outbound ftp requests ?

+4  A: 

You're correct. Google App Engine does not allow you to make FTP requests. Not even with a paid account.

I had to use a LAMP instance on EC2 that handles FTP'ing through CURL, and make http requests to it from GAE.

mahmoud
Thank you I was hoping to be able to do something similar. I will give it a try.Thanks again.
rabs