# HTTP POST Requests with nested JSON form-data

**URL:** <https://forum.elixirforum.com/t/http-post-requests-with-nested-json-form-data/32509>\
**Category:** Questions\
**Tags:** httpoison, web-scraping\
**Created:** [June 21, 2020, 12:07am UTC](https://forum.elixirforum.com/t/http-post-requests-with-nested-json-form-data/32509 "2020-06-21T00:07:46Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Leo328](https://forum.elixirforum.com/letter_avatar_proxy/v4/letter/l/b487fb/32.png) [@Leo328](https://forum.elixirforum.com/u/Leo328)\
**Post date:** [June 21, 2020, 3:55am UTC](https://forum.elixirforum.com/t/http-post-requests-with-nested-json-form-data/32509/3 "2020-06-21T03:55:09Z")

</div>

Hi cpgo,

Thanks for your reply - I felt quite silly after you pointed that out. But it doesn’t seem to work in my case:

```elixir
iex(4)> response = HTTPoison.request(request)
** (ArgumentError) argument error
    :erlang.iolist_to_binary([{"func", "getbuyersguide"}, {"payload", "{\"partData\":{\"groupindex\":\"414\",\"listing_data_essential\":{\"groupindex\":\"414\",\"carcode\":\"1411579\",\"parttype\":\"1684\",\"partkey\":\"10898080\",\"opts\":{\"0-0-8-1\":{\"warehouse\":\"77478\",\"whpartnum\":\"NAD D946:P\",\"optionlist\":\"0\",\"paramcode\":\"0\",\"notekey\":\"8\",\"multiple\":\"1\"}}},\"listing_data_supplemental\":{\"partnumber\":\"D946\",\"catalogname\":\"NAD XL\",\"belongstolisting\":\"413\",\"markets\":[\"US\",\"CA\"],\"sortgroup\":0,\"sortgrouptext\":\"Economy\",\"showhide\":{}},\"OptKey\":\"0-0-8-1\"}}"}, {"api_json_request", "1"}, {"sctchecked", "1"}, {"scbeenloaded", "false"}, {"curCartGroupID", ""}])
    (hackney 1.16.0) /home/leo/wheelknowledge/elixir_scraper/deps/hackney/src/hackney_request.erl:352: :hackney_request.handle_body/4
    (hackney 1.16.0) /home/leo/wheelknowledge/elixir_scraper/deps/hackney/src/hackney_request.erl:87: :hackney_request.perform/2
    (hackney 1.16.0) /home/leo/wheelknowledge/elixir_scraper/deps/hackney/src/hackney.erl:376: :hackney.send_request/2
    (httpoison 1.5.1) lib/httpoison/base.ex:786: HTTPoison.Base.request/6

```

We’re almost there though.

---

_[View the full topic](https://forum.elixirforum.com/t/http-post-requests-with-nested-json-form-data/32509)._
