-
Notifications
You must be signed in to change notification settings - Fork 170
ContentLength can go over 2 byte int #90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Converted int to long to allow for more then 65535 bytes in length
Converted int to long to allow for more then 65535 bytes in length
Hi, is necessary to adjust also the sendHeader metod: sendHeader(const char* aHeaderName, const int aHeaderValue); |
As the const char is pointing to a real string (the value of a header in this case). I think that would be incorrect. |
Hi, please check. |
I think casting your value to int would do the trick as the method already exists: ArduinoHttpClient/src/HttpClient.h Line 198 in 0fac9f0
|
If you try to use this method passing a "long" value, it will not work. I tried, and I received a timeout error. |
Do you have a simple example? I think i miss something. |
I have my project, that is not so simple....
Here, if I leave the parameter of sendHeader as int, the upload fails with a timeout, and errorcode -3. If I convert int to long it works. I'm available with TeamViewer, if you want to see. Alessandro |
Any reasson why this request is not merged yet ? |
Hi @Park0, thanks for your contribution, could you please sign the CLA? |
When i tried to download a file over 64k i got issues on a arduinomega. This change will make the content length of type long so it will be 4 bytes.