# How to parse an form data with HTTP.jl?

**URL:** <https://discourse.julialang.org/t/how-to-parse-an-form-data-with-http-jl/84523>\
**Category:** General Usage\
**Tags:** parser, httpjl, urlencode\
**Created:** [July 20, 2022, 10:11am UTC](https://discourse.julialang.org/t/how-to-parse-an-form-data-with-http-jl/84523 "2022-07-20T10:11:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![xor0110](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/xor0110/32/7926_2.png) [@xor0110](https://discourse.julialang.org/u/xor0110)\
**Post date:** [July 20, 2022, 10:11am UTC](https://discourse.julialang.org/t/how-to-parse-an-form-data-with-http-jl/84523/1 "2022-07-20T10:11:16Z")

</div>

HTTP.Form can take a dictionary of key-value pairs and produce an encoded form string for making POST requests with `"Content-Type", "application/x-www-form-urlencoded"`. How can I take such a request in my server and parse

---

<div class="post-metadata">

**Author:** ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)\
**Post date:** [July 20, 2022, 12:06pm UTC](https://discourse.julialang.org/t/how-to-parse-an-form-data-with-http-jl/84523/2 "2022-07-20T12:06:00Z")

</div>

You can use the [`HTTP.parse_multipart_form(req::Request)::Vector{Multipart}`](https://github.com/JuliaWeb/HTTP.jl/blob/8c21c104b7b1e34c403655e180f6ae9dd1122ab3/src/parsemultipart.jl#L221-L234) function.

---

<div class="post-metadata">

**Author:** ![xor0110](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/xor0110/32/7926_2.png) [@xor0110](https://discourse.julialang.org/u/xor0110)\
**Post date:** [July 20, 2022, 4:29pm UTC](https://discourse.julialang.org/t/how-to-parse-an-form-data-with-http-jl/84523/3 "2022-07-20T16:29:15Z")

</div>

I think I tried that, but I got `nothing`…

---

<div class="post-metadata">

**Author:** ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)\
**Post date:** [July 20, 2022, 5:45pm UTC](https://discourse.julialang.org/t/how-to-parse-an-form-data-with-http-jl/84523/4 "2022-07-20T17:45:11Z")

</div>

Open an issue with a broken example then.
