Bug fix

Do POST after setting headers and include the Content-Length one (it is necessary)