Open winny- opened 6 years ago
Oops, just realized this is probably a duplicate of #86. TL;DR pb doesn't support Transfer-Encoding: chunked
, and returns a 400 HTTP error. It appears curl
cli tool implemented a fix as mentioned in the above Related issue.
This is how they fixed it curl/curl@665b3e48bc95713ecceaddf445fc2049440a6fb3
Indeed, this is a duplicate of #86, but this investigation along with a proposed fix is incredibly helpful. Thank you for looking through it! I will see if I can't get the fix setup this weekend.
No problem! I kept on running into this bug for months and chalked it up to some strange sort of user error.
I do not believe this is directly related, but curl_formadd has been deprecated.
Is there any updates on this?
I'm afraid not quite yet. I've been swamped with life lately. I have some of the progress on switching over to curl_mime
on the branch in this repo of the same name. But, I have not yet gotten it working.
Keeping in mind it involves a rewrite, (werkzeug/flask/wsgi are never going to fix this), I think explicitly requesting API support for chunked transfers of unknown total size is completely valid, particularly if it results in a cleaner pbpst implementation.
Related
Output
I get this error with commit ecbe08a0b72a6e4212f09fc6cf52a73506992346 & version 1.4.0.
Verbose output