sending a json body with http:request

Tim Fletcher twoggle@REDACTED
Fri Jan 29 09:56:55 CET 2010


> I've tried:
> binary_to_list(iolist_to_binary(mochijson2:encode(Data)))
>
> It works but there is probably a better way.

The http request body can be a string or a binary, so no need to call
binary_to_list.


More information about the erlang-questions mailing list