Okundu Omeni
/
wifi-https-ble-sm-uart-atcmd-5-13-1
this is using the mbed os version 5-13-1
Diff: source/ATCmdManager.cpp
- Revision:
- 86:04fc2fcda7ec
- Parent:
- 85:9f896e1e041c
- Child:
- 87:99b37d26ff2a
--- a/source/ATCmdManager.cpp Thu Mar 28 23:03:33 2019 +0000 +++ b/source/ATCmdManager.cpp Thu Mar 28 23:41:10 2019 +0000 @@ -230,8 +230,17 @@ //s1.replace(pos,1,""); printf("\nname = %s value = %s",s1, s2); //if(s1.find("Host")!= string::npos){ - if(strstr(s1, "POST")!= NULL){ - http_req.http_version.assign(s3); + if(strstr(s1, "Host")!= NULL){ + http_req.hostName.assign(s2); + } + else if(strstr(s1, "Accept")!= NULL){ + http_req.AcceptVal.assign(s2); + } + else if(strstr(s1, "Content-Type")!= NULL){ + http_req.contentType.assign(s2); + } + else if(strstr(s1, "Content-Length")!= NULL){ + http_req.contentLen.assign(s2); }