Skip to content

Missing Content-Length header #4

Closed

Description

@jesustorresdev

I think the write method (at HttpClient.h#L358) should send Content-Length setted to aSide before to finish the request.

Activity

  1. amcewen commented on Nov 23, 2013

    @amcewen
    Owner

    It's a good idea, but sadly we don't know how many times the user is going to call write, so can't assume that aSize is the full content length.

    The current implementation is a trade-off between ease of use and not having to parcel up all the the data you need to send so that it can be sent in one call to write. At present, for example, you could upload a file from an SD card, which is much bigger than the 2KB memory size of the (standard) Arduino. You wouldn't be able to do that if you had to send it all in one call as it wouldn't all fit into memory at once.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions