-
Notifications
You must be signed in to change notification settings - Fork 0
/
httputils.h
42 lines (31 loc) · 929 Bytes
/
httputils.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
* =====================================================================================
*
* Filename: httputil.h
*
* Description:
*
* Version: 1.0
* Created: 2009Äê12ÔÂ09ÈÕ 10ʱ24·Ö23Ãë
* Revision: none
* Compiler: gcc
*
* Author: lerosua (), lerosua@gmail.com
* Company: cyclone
*
* =====================================================================================
*/
#ifndef HTTP_UTILS_HEADER_INC_
#define HTTP_UTILS_HEADER_INC_
//#define _AFXDLL
#include <afxinet.h>
#include <iostream>
#include <string>
using namespace std;
namespace HttpUtils
{
bool httpGet(LPCTSTR host,int nPort,LPCTSTR urlstr, LPCTSTR auth,const char* output_file_name, long* bytes_read);
bool httpPost(LPCTSTR host,int nPort,LPCTSTR urlstr, LPCTSTR auth,const char* post_str, char* back_str);
bool HttpDownFIle(LPCTSTR FileURL, LPCTSTR saveFile);
}
#endif