Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我目前正在使用带有以下请求的 Inets:
http:request(put, {Url, [{"User-Agent", UA}, {"Content-type", "application/json"}]}, Bodytext, []),
但请求失败。
有什么建议么?
ibrowse:start().
ibrowse:send_req(Url, Headers, put, Body).
或者
ibrowse:send_req(Url, Headers, put, Body, Options).
试试这个:http:request(put, {Url, [{"User-Agent", UA}], "application/json", Bodytext}, [], [])