SOAPの為に修正します。
Dependents: temp_FIAP temp_FIAP_fetch tepco_demand BlueUSB_f_IEEE1888 ... more
Fork of HTTPClient by
Revision 16:e8866f68cb4a, committed 2013-10-23
- Comitter:
- yueee_yt
- Date:
- Wed Oct 23 07:34:47 2013 +0000
- Parent:
- 15:e09afb9ca1cd
- Commit message:
- BugFix
Changed in this revision
HTTPClient.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r e09afb9ca1cd -r e8866f68cb4a HTTPClient.cpp --- a/HTTPClient.cpp Mon Aug 20 10:18:30 2012 +0000 +++ b/HTTPClient.cpp Wed Oct 23 07:34:47 2013 +0000 @@ -466,7 +466,7 @@ char scheme[8]; uint16_t port; - char host[32]; + char host[100]; char path[64]; //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)); @@ -485,6 +485,7 @@ DBG("Host: %s", host); DBG("Port: %d", port); DBG("Path: %s", path); + DBG("SOAPAction: %s",SOAPAction); //Connect DBG("Connecting socket to server"); @@ -526,19 +527,16 @@ ret = send(buf); CHECK_CONN_ERR(ret); } - char type[48]; - if( pDataOut->getDataType(type, 48) == HTTP_OK ) - { + //char type[48]; + //if( pDataOut->getDataType(type, 48) == HTTP_OK ) + //{ snprintf(buf, sizeof(buf), "Content-Type: text/xml;charset=UTF-8\r\n"); ret = send(buf); CHECK_CONN_ERR(ret); - snprintf(buf, sizeof(buf), "SOAPAction: \"%s\"\r\n", type); + snprintf(buf, sizeof(buf), "SOAPAction: \"%s\"\r\n", SOAPAction); ret = send(buf); CHECK_CONN_ERR(ret); -// snprintf(buf, sizeof(buf), "Content-Type: %s\r\n", type); -// ret = send(buf); -// CHECK_CONN_ERR(ret); - } + //} } //Close headers