# Get POST parameters using a HTTP server

**URL:** <https://discourse.julialang.org/t/get-post-parameters-using-a-http-server/39113>\
**Category:** Web Stack\
**Tags:** question, package\
**Created:** [May 8, 2020, 2:05pm UTC](https://discourse.julialang.org/t/get-post-parameters-using-a-http-server/39113 "2020-05-08T14:05:38Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![yoh-meyers](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yoh-meyers/32/14700_2.png) [@yoh-meyers](https://discourse.julialang.org/u/yoh-meyers)\
**Post date:** [May 8, 2020, 2:29pm UTC](https://discourse.julialang.org/t/get-post-parameters-using-a-http-server/39113/3 "2020-05-08T14:29:39Z")

</div>

Hi Daniel,

I have studied the `HTTP.jl` library extensively.  
You would need to do:

```julia
HTTP.Handlers.serve(server_host, server_port) do request::HTTP.Request
  request_payload=String(take!(IOBuffer(request.body))))
end

```

`request_payload` is JSON string format

As side note I recently created a lighter Julia web library (only renders JSON API and HTTP Get) doing all this for you. Might want to check [Dance.jl](https://github.com/DanceJL/Dance.jl)

Cheers

---

_[View the full topic](https://discourse.julialang.org/t/get-post-parameters-using-a-http-server/39113)._
