# HTTP.post() Exceptions.StatusError(400, ...)

**URL:** <https://discourse.julialang.org/t/http-post-exceptions-statuserror-400/106251>\
**Category:** New to Julia\
**Tags:** http\
**Created:** [November 15, 2023, 7:42am UTC](https://discourse.julialang.org/t/http-post-exceptions-statuserror-400/106251 "2023-11-15T07:42:10Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [November 15, 2023, 8:04am UTC](https://discourse.julialang.org/t/http-post-exceptions-statuserror-400/106251/4 "2023-11-15T08:04:16Z")

</div>

Did you try to use [API Reference · HTTP.jl](https://juliaweb.github.io/HTTP.jl/stable/reference/#HTTP.Forms.Form)? HTTP.jl should automatically handle the content type header in this case.

You can also try the suggestion from [https://discourse.julialang.org/t/http-post-xml-request-with-headers-and-authentification/61026/2](https://discourse.julialang.org/t/http-post-xml-request-with-headers-and-authentification/61026/2) to compare the two (Python and Julia).

---

_[View the full topic](https://discourse.julialang.org/t/http-post-exceptions-statuserror-400/106251)._
