1#ifndef __JBXL_HTTP_TOOL_H_
2#define __JBXL_HTTP_TOOL_H_
22#define HTTP_CONNECTION_CLOSE 0
23#define HTTP_CONNECTION_KEEP 1
24#define HTTP_HEADER_NOT_HTTP -1990
25#define HTTP_HEADER_CLOSED_SESSION -1997
26#define HTTP_HEADER_CHUNKED -1998
27#define HTTP_HEADER_UNKNOWN_LEN -1999
30#define HTTP_ERROR_METHOD -1
31#define HTTP_UNKNOWN_METHOD 0
34#define HTTP_GET_METHOD 1
35#define HTTP_PUT_METHOD 2
36#define HTTP_POST_METHOD 3
37#define HTTP_DELETE_METHOD 4
38#define HTTP_OPTIONS_METHOD 5
39#define HTTP_HEAD_METHOD 6
40#define HTTP_TRACE_METHOD 7
41#define HTTP_CONNECT_METHOD 8
42#define HTTP_PATCH_METHOD 9
43#define HTTP_LINK_METHOD 10
44#define HTTP_UNLINK_METHOD 11
47#define HTTP_PROPFIND_METHOD 20
48#define HTTP_PROPPATCH_METHOD 21
49#define HTTP_MKCOL_METHOD 22
50#define HTTP_COPY_METHOD 23
51#define HTTP_MOVE_METHOD 24
52#define HTTP_LOCK_METHOD 25
53#define HTTP_UNLOCK_METHOD 26
55#define HTTP_RESPONSE_METHOD 99
57#define HTTP_TIMEOUT 60
58#define HTTP_RESPONSE_TIMEOUT 180
59#define HTTP_PROXY_TIMEOUT 60
74int recv_http_file(
int sock,
tList** pl,
const char* fn,
const char* wdir,
int timeout,
int* hdonly,
int* state);
77int save_http_xml(
int sock,
tList** pl,
tXML** xml,
char** recvfn,
const char* wdir,
int timeout,
int* state);
104int tcp_relay(
int sofd,
int cofd,
int tm);