gwenhywfar  4.7.0beta
httpsession.h
Go to the documentation of this file.
1 /***************************************************************************
2  begin : Fri Feb 15 2008
3  copyright : (C) 2008-2010 by Martin Preuss
4  email : martin@libchipcard.de
5 
6  ***************************************************************************
7  * Please see toplevel file COPYING for license details *
8  ***************************************************************************/
9 
10 
11 #ifndef GWEN_HTTP_SESSION_H
12 #define GWEN_HTTP_SESSION_H
13 
14 
15 #include <gwenhywfar/inherit.h>
16 
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20 
23 
24 #ifdef __cplusplus
25 }
26 #endif
27 
28 
29 #include <gwenhywfar/url.h>
30 #include <gwenhywfar/buffer.h>
31 
32 
36 #define GWEN_HTTP_SESSION_FLAGS_FORCE_SSL3 0x00000001
37 #define GWEN_HTTP_SESSION_FLAGS_NO_CACHE 0x00000002
38 
39 
40 #ifdef __cplusplus
41 extern "C" {
42 #endif
43 
44 
50 
55 
57 GWEN_HTTP_SESSION *GWEN_HttpSession_new(const char *url, const char *defaultProto, int defaultPort);
58 
61 
75 
77 uint32_t GWEN_HttpSession_GetFlags(const GWEN_HTTP_SESSION *sess);
78 
80 void GWEN_HttpSession_SetFlags(GWEN_HTTP_SESSION *sess, uint32_t fl);
81 
83 void GWEN_HttpSession_AddFlags(GWEN_HTTP_SESSION *sess, uint32_t fl);
84 
86 void GWEN_HttpSession_SubFlags(GWEN_HTTP_SESSION *sess, uint32_t fl);
87 
90 
92 void GWEN_HttpSession_SetHttpUserAgent(GWEN_HTTP_SESSION *sess, const char *s);
93 
96 
99 
100 
103 
106 
109 
122 
125 
126 
127 
132 
144  const char *httpCommand,
145  const uint8_t *buf, uint32_t blen);
146 
154 
156 int GWEN_HttpSession_RecvPacketToFile(GWEN_HTTP_SESSION *sess, const char *fname);
157 
166 
170  /* defgroup */
171 
172 
173 #ifdef __cplusplus
174 }
175 #endif
176 
177 
178 #endif
179