我尝试将文件从本地计算机发送到服务器。
t= subprocess.Popen(['curl', '-T', '/home/test/Downloads/my_own.xml',
'http://far_away_server/'], stdout = subprocess.PIPE, stderr = subprocess.PIPE)
在stderr中我看到了:
usage: curl [file] [URL]
[file] [HTTP] fetches a file from an 'http' URL
[file] [HTTPS] fetches a file from an 'https' URL
[file] [FTP] fetches a file from a 'ftp' URL
我的错误在哪里?
答案 0 :(得分:0)
必须工作......