HttpClient.h 724 B

12345678910111213141516171819202122232425262728
  1. // HttpClient.h: interface for the CHttpClient class.
  2. //////////////////////////////////////////////////////////////////////
  3. #if !defined(AFX_HTTPCLIENT_H__EA769DCB_AAB9_47CD_BD87_FBD6913592C5__INCLUDED_)
  4. #define AFX_HTTPCLIENT_H__EA769DCB_AAB9_47CD_BD87_FBD6913592C5__INCLUDED_
  5. #if _MSC_VER > 1000
  6. #pragma once
  7. #endif // _MSC_VER > 1000
  8. #include "wininet.h"
  9. #include "afxinet.h"
  10. class CHttpClient
  11. {
  12. public:
  13. void addParam(CString name,CString value);
  14. CString doPost(CString href);
  15. CString doGet(CString href);
  16. CHttpClient();
  17. virtual ~CHttpClient();
  18. private:
  19. CString CONTENT;
  20. int CL;
  21. CStringList values;
  22. CStringList names;
  23. };
  24. #endif // !defined(AFX_HTTPCLIENT_H__EA769DCB_AAB9_47CD_BD87_FBD6913592C5__INCLUDED_)