write to remote ile

Martin P. Hellwig martin.hellwig at dcuktec.org
Mon Mar 8 03:20:20 CET 2010


On 03/08/10 02:10, monkeys paw wrote:
> I can xfer a file from a remote server using:
>
> import urllib2 as u
> x=u.urlopen('http://tycho.usno.navy.mil/cgi-bin/timer.pl')
>
> for line in x:
> print line
>
>
> How can i write a file to the remote server?
>
> I tried:
>
> x = u.url.open('http://joemoney.net/somefile.txt', 'w')
>
> but that does not work

How do you normally (i.e. without python) put files on a remote server?

-- 
mph



More information about the Python-list mailing list