将二进制数据放入python sharemy3d

将二进制数据放入python sharemy3d,python,curl,put,Python,Curl,Put,我和一位同事一起工作,遇到了一个问题 我有一个文件上传链接,需要执行 curl -X PUT -T - "[UPLOAD_URL]" < PATH_TO_LOCAL_FILE curl-X PUT-T-“[UPLOAD\u URL]”

我和一位同事一起工作,遇到了一个问题

我有一个文件上传链接,需要执行

curl -X PUT -T - "[UPLOAD_URL]" < PATH_TO_LOCAL_FILE  
curl-X PUT-T-“[UPLOAD\u URL]”

我的特定CURL命令:

curl -X PUT -T - https://storage.googleapis.com/sharemy3d-central-us-1-produc‌​tion/alotofstuff < /home/max/Documents/file.obj
curl-X PUT-T-https://storage.googleapis.com/sharemy3d-central-us-1-produc‌​tion/alotofstuff
执行后,我总是会得到:

curl: (6) Could not resolve host: <
curl: (3) <url> malformed
curl:(6)无法解析主机:<
卷曲:(3)畸形

还有其他方法来放置二进制文件吗?

我所要做的就是执行
curl-T file.objhttps://example.com

使用
-T
(与
-上传文件
相同)curl将使用
PUT
进行
HTTP

请显示您正在使用的不起作用的特定curl命令。(如果愿意,请将所有URL更改为'example.com')您好,@DaveP。它是
curl-xput-T-https://storage.googleapis.com/sharemy3d-central-us-1-production/alotofstuff