Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
8 years, 2 months ago.
parsing http response fails - 'key' and 'value' buffers too small
Hi, I'm using your HTTPClient lib in my library and it's been working great! I recently ran into an issue while testing against http://httpbin.org. In order to fix a bug, their server started sending back "Access-Control-Allow-Credentials: true" in the Response Headers. The length of the key in that header is 33 bytes, which is larger than the size of the 'key' buffer (32 bytes). This causes parsing of the reply to fail even though the response is valid.
This could be an issue anytime a server sends back headers with longer key names. Could you update the lib to accommodate larger key and value sizes?