HTTPClient for IEEE1888 (FIAP) Gateway

Dependents:   Fetch_IEEE1888_Storage IEEE1888_MULTI_SENSOR_GW

Fork of HTTPClient by Donatien Garnier

Revision:
17:b3cc5bba2af4
Parent:
16:1f743885e7de
--- a/HTTPClient.h	Thu Aug 30 15:38:57 2012 +0000
+++ b/HTTPClient.h	Sun Feb 17 09:59:36 2013 +0000
@@ -101,7 +101,19 @@
   @return 0 on success, HTTP error (<0) on failure
   */
   HTTPResult post(const char* url, const IHTTPDataOut& dataOut, IHTTPDataIn* pDataIn, int timeout = HTTP_CLIENT_DEFAULT_TIMEOUT); //Blocking
-  
+
+//strysd add start
+  /** Exetended POST request
+  Blocks until completion
+  @param url : same as post()
+  @param SOAPAction : SOAP Method
+  @param dataOut : same as post()
+  @param pDataIn : same as post()
+  @param timeout   same as post()
+  */
+  HTTPResult postXML(const char* url,const char* SOAPAction, const IHTTPDataOut& dataOut, IHTTPDataIn* pDataIn, int timeout = HTTP_CLIENT_DEFAULT_TIMEOUT); //Blocking
+//strysd add end
+ 
   /** Execute a PUT request on the URL
   Blocks until completion
   @param url : url on which to execute the request
@@ -137,6 +149,8 @@
   };
 
   HTTPResult connect(const char* url, HTTP_METH method, IHTTPDataOut* pDataOut, IHTTPDataIn* pDataIn, int timeout); //Execute request
+  //strysd add 1 line
+  HTTPResult connectExt(const char* url, HTTP_METH method, const char* XMLAction, IHTTPDataOut* pDataOut, IHTTPDataIn* pDataIn, int timeout); //Execute request
   HTTPResult recv(char* buf, size_t minLen, size_t maxLen, size_t* pReadLen); //0 on success, err code on failure
   HTTPResult send(char* buf, size_t len = 0); //0 on success, err code on failure
   HTTPResult parseURL(const char* url, char* scheme, size_t maxSchemeLen, char* host, size_t maxHostLen, uint16_t* port, char* path, size_t maxPathLen); //Parse URL