Fix POST and PUT requests.

Also really fixes messages not able to send.