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: Real-time_Bus_Arrival_Alarm
Fork of HTTPClient by
Revision 19:db3ba053226c, committed 2015-08-26
- Comitter:
- hkjung
- Date:
- Wed Aug 26 05:09:36 2015 +0000
- Parent:
- 18:277279a1891e
- Commit message:
- Buffer size extended
Changed in this revision
| HTTPClient.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/HTTPClient.cpp Wed May 07 16:48:10 2014 +0000
+++ b/HTTPClient.cpp Wed Aug 26 05:09:36 2015 +0000
@@ -127,7 +127,7 @@
char scheme[8];
uint16_t port;
char host[32];
- char path[64];
+ char path[128];
//First we need to parse the url (http[s]://host[:port][/[path]]) -- HTTPS not supported (yet?)
HTTPResult res = parseURL(url, scheme, sizeof(scheme), host, sizeof(host), &port, path, sizeof(path));
if(res != HTTP_OK)
@@ -396,7 +396,7 @@
}
}
}
- if ( n == 2 )
+ //if ( n == 2 )
{
DBG("Read header : %s: %s\n", key, value);
if( !strcmp(key, "Content-Length") )
@@ -423,11 +423,11 @@
trfLen -= (crlfPos + 2);
}
- else
- {
- ERR("Could not parse header");
- PRTCL_ERR();
- }
+ //else
+// {
+// ERR("Could not parse header");
+// PRTCL_ERR();
+// }
}
