1

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?

mic4ael
  • 7,974
  • 3
  • 29
  • 42
Ted Karmel
  • 1,046
  • 1
  • 12
  • 20

2 Answers2

1

ibrowse:start().

ibrowse:send_req(Url, Headers, put, Body).

OR

ibrowse:send_req(Url, Headers, put, Body, Options).

Clive
  • 36,918
  • 8
  • 87
  • 113
Chandru
  • 26
  • 1
0

Try this: http:request(put, {Url, [{"User-Agent", UA}], "application/json", Bodytext}, [], [])

klm
  • 21
  • 1
  • 1
    Can you use wireshark or tcpdump to determine if the request is reaching your server? Also, can you successfully perform the request with curl? – klm Jun 23 '10 at 20:54