interactive-matter / HTTPClient

An Arduino HTTP Client
https://interactive-matter.eu/how-to/arduino-http-client-library/
101 stars 33 forks source link

Added error handling to skipHeaders to prevent usable of httpReturnCode on invalid returns #15

Closed Apollon77 closed 8 years ago

Apollon77 commented 9 years ago

Added error handling to skipHeaders to prevent usable of httpReturnCode on invalid returns, May fix Issue #3. In any case „lastReturnCode“ will be re-set to NULL for any request, so if not successful to skip headers „NULL“ is the „last“ return Code

Additionally changed some code in "closeStream" to make sure that connection is always closed correctly by calling "stop" and not leaving "CLOSE_WAIT" sockets

Apollon77 commented 8 years ago

I added solution for issue #3 too ...