• IMHO, the implementation of the http client in espruino should:

    • use HTTP/1.0
    • parse the Content-Length header (I believe Chunked-Encoding can be avoided with HTTP/1.0)
    • close the connection once the number of payload bytes indicated in the Content-Length header have been read

    Implementing HTTP/1.1 can be a future enhancement once the above is working...

About

Avatar for tve @tve started