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.
Dependencies: CyaSSL
Dependents: MTS-Socket MTS-Socket
Diff: HTTPClient.cpp
- Revision:
- 29:2d96cc752d19
- Parent:
- 28:6fbaf49cc109
- Child:
- 30:6fef375c94e6
--- a/HTTPClient.cpp Wed Aug 27 18:10:09 2014 +0000
+++ b/HTTPClient.cpp Wed Aug 27 20:30:29 2014 +0000
@@ -16,6 +16,10 @@
* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
+
+// DMA: Added tunable to adapt size of larger input URLs
+#define MAX_URL_HOSTNAME_LENGTH 128
+#define MAX_URL_PATH_LENGTH 128
//Debug is disabled by default
#if 0
@@ -231,8 +235,8 @@
}
char scheme[8];
- char host[128];
- char path[128];
+ char host[MAX_URL_HOSTNAME_LENGTH];
+ char path[MAX_URL_PATH_LENGTH];
int ret ;