Fork with custom headers and basic auth.

Dependents:   MbedSmartRest

Fork of HTTPClient by Kazushi Mukaiyama

Revision:
20:cb2e5cd4e29b
Parent:
19:bcbf0af9fac3
Child:
21:66f1c10a5e9a
--- a/HTTPClient.cpp	Fri Jan 24 13:51:36 2014 +0000
+++ b/HTTPClient.cpp	Mon Jan 27 08:44:42 2014 +0000
@@ -175,9 +175,9 @@
   }
   
   // send authorization
-  if ((!m_basicAuthUser) && (!m_basicAuthPass)) {
+  if ((!m_basicAuthUser) && (!m_basicAuthPassword)) {
     strcpy(buf, "Authorization: ");
-    createauth(m_basicAuthUser, m_basicAuthPass, buf+strlen(buf), sizeof(buf)-strlen(buf));
+    createauth(m_basicAuthUser, m_basicAuthPassword, buf+strlen(buf), sizeof(buf)-strlen(buf));
     strcat(buf, "\r\n");
     
     ret = send(buf);