#ifndef	__HTTP_CLIENT_INCLUDE_H__
#define	__HTTP_CLIENT_INCLUDE_H__

/**
 *  POST ʽ
 * @param client {ACL_VSTREAM*} 
 * @param url {const char*} URL ַ
 * @param keepalive {int} Ƿ˱ֳ
 * @param gid_fmt {const char*} ݸʽxml  json
 * @param body {char*} ַ
 * @param len {int} 峤
 * @param errnum {int*} ǿ¼ʱԭ
 * @return {int} 0 ʾɹʾʧ
 */
int http_client_post_request(ACL_VSTREAM *client, const char *url, int keepalive,
	const char *gid_fmt, char* body, int len, int *errnum);

/**
 * ӷȡӦ
 * @param client {ACL_VSTREAM*} 
 * @param json {ACL_JSON*} ǿգ json ʽн
 * @param xml {ACL_XML*} ǿգ xml ʽн
 * @param errnum {int*} ǿ¼ʱԭ
 * @param dump {ACL_VSTRING*} ǿ洢Ӧ
 * @return {int} 0 ʾɹʾʧ
 * עACL_JSON*  ACL_XML* ֻһǿ
 */
int http_client_get_respond(ACL_VSTREAM* client, ACL_JSON *json,
	ACL_XML *xml, int *errnum, ACL_VSTRING *dump);

#endif
