Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

Issue with posting to the API #5

Open
mikeohara opened this issue Jul 16, 2018 · 1 comment
Open

Issue with posting to the API #5

mikeohara opened this issue Jul 16, 2018 · 1 comment

Comments

@mikeohara
Copy link

I've managed to make a few changes so it would work with their latest 2.6 API. However, I am getting an error whenever it tries to execute a POST request: 411 - Content-Length Required.

Curl is sending Content-Length header which Pwinty's API seems to not like. If I set the content length to zero it still throws the same message.

The only valid option seems to be no Content-Length header but there seems to be no way to unset that entirely.

@mikeohara
Copy link
Author

The error is specifically: HTTP Error 411. The request must be chunked or have a content length.

Upon debugging it looks like the post body is empty. it's just sending the headers.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant