Skip to content
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

Content-Length returns 0 from Godaddy #94

Open
grichfitz opened this issue Nov 9, 2020 · 0 comments
Open

Content-Length returns 0 from Godaddy #94

grichfitz opened this issue Nov 9, 2020 · 0 comments
Labels
type: imperfection Perceived defect in any part of project

Comments

@grichfitz
Copy link

grichfitz commented Nov 9, 2020

Hello,
Can anyone help with a weird issue with ArduinoHttpClient

I do the following, to get responseBody() directly into a char [].

int httplength = http.contentLength() +1;
char responsebody[httplength];
http.responseBody().toCharArray(responsebody, httplength);

This works fine on my homegrown, raspberry pi Apache server.

This fails on my godaddy server, I do not get contentLength(), it returns nothing.

It works on Postman and I get all my info.

I think it maybe solved if I could use http/1.0, but I cant seem to force ArduinoHttpClient to do this.

Has anyone else had a similar issue, or could point me in the right direction?

Thanks for any help!

@per1234 per1234 added the type: imperfection Perceived defect in any part of project label Jan 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

2 participants