二期c++接口
Dependencies: EthernetInterface mbed-rtos mbed uniqueCPUID
Fork of bcsdk by
Diff: Client.h
- Revision:
- 10:aabd720e632c
- Parent:
- 8:f2a567ee3a46
- Child:
- 12:1b24ea479a59
--- a/Client.h Wed Sep 27 01:18:12 2017 +0000 +++ b/Client.h Fri Nov 03 01:07:32 2017 +0000 @@ -1,13 +1,13 @@ /*********************************************************************** * Module: Client.h * Author: Administrator - * Modified: 2017Äê9ÔÂ4ÈÕ 11:08:02 + * Modified: 2017��9��4�� 11:08:02 * Purpose: Declaration of the class Client - * Comment: Client¶ÔÏó°üº¬¶ÔÔ¶³Ì - * APIÖ´ÐÐHTTPÇëÇóËùÐèµÄËùÓÐ - * ÐÅÏ¢¡£ ͨ³££¬Ó¦ÓóÌÐò½«¾ßÓÐÏò - * Á´ºËÐÄ·¢³öÇëÇóµÄ¿Í»§¶ËºÍÏòHSM - * ·þÎñÆ÷·¢³öÇëÇóµÄµ¥¶À¿Í»§¶Ë¡£ + * Comment: Client���������Զ�� + * APIִ��HTTP������������� + * ��Ϣ�� ͨ����Ӧ�ó��ò½«¾ï¿½ï¿½ï¿½ï¿½ï¿½ + * �����ķ�������Ŀͻ��˺���HSM + * ��������������ĵ����ͻ��ˡ� ***********************************************************************/ #if !defined(__Account_Client_h) @@ -38,6 +38,10 @@ bool build_post_raw(const string & url, const string & host, const string & token, const string & content, string & post_raw); int http_post(const string & url,const string & content,string & strOut); int http_post_raw(const string &strIn,string &strOut); + + int get_content_length(const string & strRaw); + string get_content(const string & strRep); + bool unbuild_post_raw(const string & strRep, int & content_length, string & url,string & content); protected: private: