Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: Sample_HTTPClient Sample_HTTPClient LWM2M_NanoService_Ethernet LWM2M_NanoService_Ethernet ... more
Fork of HTTPClient by
More recent changes - added iCal processing.
Derivative of a derivative, however this one works when it comes to supplying Basic authorization to access a protected resource. Some additional changes to the debug interface to clean it up for consistency with many other components I have.
Revision 47:677677ac6443, committed 2019-01-09
- Comitter:
- WiredHome
- Date:
- Wed Jan 09 12:38:31 2019 +0000
- Parent:
- 45:accd09953fae
- Child:
- 48:61c26e0111c9
- Commit message:
- Increased a buffer size for header parsing
Changed in this revision
| HTTPClient.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/HTTPClient.cpp Sun Oct 01 18:07:05 2017 +0000
+++ b/HTTPClient.cpp Wed Jan 09 12:38:31 2019 +0000
@@ -398,13 +398,13 @@
buf[crlfPos] = '\0';
- char key[32];
+ char key[61];
char value[MAXLEN_VALUE];
key[31] = '\0';
value[MAXLEN_VALUE - 1] = '\0';
- int n = sscanf(buf, "%31[^:]: %160[^\r\n]", key, value);
+ int n = sscanf(buf, "%60[^:]: %160[^\r\n]", key, value);
if ( n == 2 ) {
DBG("Read header : %s: %s", key, value);
if( !strcmp(key, "Content-Length") ) {
