curl -i -X PUT -F filedata=@text.txt -H "Content-Type: text/plain" https://url.of.endpoint.com
它不起作用,因为它模拟形式,但这个命令:
curl -i -X PUT -T text.txt -H "Content-Type: text/plain" https://url.of.endpoint.com
工作得很好.
如何将此curl命令转换为golang代码?
curl -i -X PUT -F filedata=@text.txt -H "Content-Type: text/plain" https://url.of.endpoint.com
它不起作用,因为它模拟形式,但这个命令:
curl -i -X PUT -T text.txt -H "Content-Type: text/plain" https://url.of.endpoint.com
工作得很好.
如何将此curl命令转换为golang代码?