I am currently using Inets with the following request:
http:request(put, {Url, [{"User-Agent", UA}, {"Content-type",
"application/json"}]}, Bodytext, []),
But the request fails.
Any suggestions?
I am currently using Inets with the following request:
http:request(put, {Url, [{"User-Agent", UA}, {"Content-type",
"application/json"}]}, Bodytext, []),
But the request fails.
Any suggestions?
Try this: http:request(put, {Url, [{"User-Agent", UA}], "application/json", Bodytext}, [], [])