The original HTTPClient by donatien with 2 bugfixes

Fork of HTTPClient by Donatien Garnier

Files at this revision

API Documentation at this revision

Comitter:
the_programmer
Date:
Sat Dec 29 14:16:32 2012 +0000
Parent:
16:1f743885e7de
Child:
20:d1e87804a774
Commit message:
Struct Bugfix + buffer increase

Changed in this revision

HTTPClient.cpp Show annotated file Show diff for this revision Revisions of this file
HTTPClient.h Show annotated file Show diff for this revision Revisions of this file
--- a/HTTPClient.cpp	Thu Aug 30 15:38:57 2012 +0000
+++ b/HTTPClient.cpp	Sat Dec 29 14:16:32 2012 +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)
--- a/HTTPClient.h	Thu Aug 30 15:38:57 2012 +0000
+++ b/HTTPClient.h	Sat Dec 29 14:16:32 2012 +0000
@@ -36,6 +36,7 @@
 ///HTTP client results
 enum HTTPResult
 {
+  HTTP_OK = 0, ///<Success
   HTTP_PROCESSING, ///<Processing
   HTTP_PARSE, ///<url Parse error
   HTTP_DNS, ///<Could not resolve name
@@ -46,7 +47,6 @@
   HTTP_TIMEOUT, ///<Connection timeout
   HTTP_CONN, ///<Connection error
   HTTP_CLOSED, ///<Connection was closed by remote host
-  HTTP_OK = 0, ///<Success
 };
 
 /**A simple HTTP Client