I get an error when I used urllib2.urlopen() to open a remote file in a ftp server

Ariel isaacrc82 at gmail.com
Thu Jan 6 13:59:24 EST 2011


You are right, Thanks.
On Thu, Jan 6, 2011 at 12:55 PM, Ian Kelly <ian.g.kelly at gmail.com> wrote:
> On Thu, Jan 6, 2011 at 10:26 AM, Ariel <isaacrc82 at gmail.com> wrote:
> > Hi everybody:
> >
> > I get an error when I used urllib2.urlopen() to open a remote file in a
> ftp
> > server, My code is the following:
> >
> >>>> file = 'ftp:/192.168.250.14:2180/RTVE/VIDEOS/Thisisit.wmv'
>> Looks to me like you're missing a slash separating the protocol from
> the hostname. Try 'ftp://' instead of 'ftp:/'.
>-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20110106/765594a2/attachment-0001.html>


More information about the Python-list mailing list

AltStyle によって変換されたページ (->オリジナル) /