[erlang-questions] Re: sending a json body with http:request

Hynek Vychodil hynek@REDACTED
Thu Feb 4 11:25:30 CET 2010

I think http:request should accept iolist and you don't need neither
binary_to_list neither iolist_to_binary.

On Fri, Jan 29, 2010 at 9:56 AM, Tim Fletcher <twoggle@REDACTED> wrote:
>> 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.
> ________________________________________________________________
> erlang-questions mailing list. See http://www.erlang.org/faq.html
> erlang-questions (at) erlang.org

--Hynek (Pichi) Vychodil

Analyze your data in minutes. Share your insights instantly. Thrill
your boss.  Be a data hero!
Try GoodData now for free: www.gooddata.com

More information about the erlang-questions mailing list