tass-belgium / picotcp-modules

Application level modules to run on top of the popular Embedded picoTCP TCP/IP stack
GNU General Public License v2.0
8 stars 11 forks source link

HTTP client: Handle 404 #9

Closed maximevince closed 9 years ago

maximevince commented 9 years ago

Using the http-client-demo, and querying http://httpbin.org/, and then choosing the "1 = get connection close" header, results in a 404-response, but the demo or http lib still tries to read data from a body that has length 0. @robbinvandamme

VincentDeHaen commented 9 years ago

Similar behaviour: sending http package with body content. http lib receives the header ok but says that body length is 0 and keeps on trying to read the body. @robbinvandamme

robbinvandamme commented 9 years ago

HTTLIB now also handles the body of the http error-responses.

robbinvandamme commented 9 years ago

"Content-Length" in response was spelled wrong ("Content-length").