Fixed issues when needing to send post data with another HTTP method, e.g PUT