# HTTP: Login to MediaWiki API with post fails (works with python)

**URL:** https://discourse.julialang.org/t/http-login-to-mediawiki-api-with-post-fails-works-with-python/41657
**Category:** Web Stack
**Created:** [June 18, 2020, 9:39am UTC](https://discourse.julialang.org/t/http-login-to-mediawiki-api-with-post-fails-works-with-python/41657 "2020-06-18T09:39:57Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![zweiglimmergneis](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/zweiglimmergneis/32/7892_2.png) [@zweiglimmergneis](https://discourse.julialang.org/u/zweiglimmergneis)
#### Post date: [June 18, 2020, 1:30pm UTC](https://discourse.julialang.org/t/http-login-to-mediawiki-api-with-post-fails-works-with-python/41657/5 "2020-06-18T13:30:32Z")

</div>

This is cool! However, it appends the parameters to the URL, but they are expected in the POST body in this case.

I set up a little server as described in the [documentation](https://juliaweb.github.io/HTTP.jl/stable/public_interface/#Server-/-Handlers-1) of HTTP.jl and saw that the python body and the julia body are the same. Then I set `cookies=true` in the request to get the login token, et voilà, that was it.

Some [background info](https://discourse.julialang.org/t/http-jl-managing-cookies-similar-to-python-requests/23665/5).

Thanks a lot for your comments!

---

_[View the full topic](https://discourse.julialang.org/t/http-login-to-mediawiki-api-with-post-fails-works-with-python/41657)._
