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

Did you try to use API Reference · HTTP.jl? 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 to compare the two (Python and Julia).