Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Content-Length returns 0 from Godaddy #94

Copy link
Copy link
Open
@grichfitz

Description

@grichfitz
Issue body actions

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: imperfectionPerceived defect in any part of projectPerceived defect in any part of project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.