aboutsummaryrefslogtreecommitdiffstats
path: root/include/http.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>1999-01-19 18:37:41 +0000
committerWerner Koch <[email protected]>1999-01-19 18:37:41 +0000
commitce650acf1fc32a20db50a996ecc3008f47b02188 (patch)
treeeeafe3ce39fcbdc17a377470914942920c6d225b /include/http.h
parentSee ChangeLog: Sun Jan 17 11:04:33 CET 1999 Werner Koch (diff)
downloadgnupg-ce650acf1fc32a20db50a996ecc3008f47b02188.tar.gz
gnupg-ce650acf1fc32a20db50a996ecc3008f47b02188.zip
See ChangeLog: Tue Jan 19 19:34:58 CET 1999 Werner Koch
Diffstat (limited to 'include/http.h')
-rw-r--r--include/http.h17
1 files changed, 15 insertions, 2 deletions
diff --git a/include/http.h b/include/http.h
index a439b4b81..d55213eb9 100644
--- a/include/http.h
+++ b/include/http.h
@@ -43,20 +43,33 @@ struct parsed_uri {
};
typedef struct parsed_uri *PARSED_URI;
+typedef enum {
+ HTTP_REQ_GET = 1,
+ HTTP_REQ_HEAD = 2,
+ HTTP_REQ_POST = 3
+} HTTP_REQ_TYPE;
+
struct http_context {
int initialized;
unsigned int status_code;
int socket;
+ int in_data;
IOBUF fp_read;
IOBUF fp_write;
int is_http_0_9;
PARSED_URI uri;
+ HTTP_REQ_TYPE req_type;
byte *buffer; /* line buffer */
unsigned buffer_size;
};
typedef struct http_context *HTTP_HD;
-int open_http_document( HTTP_HD hd, const char *document, unsigned int flags );
-void close_http_document( HTTP_HD hd );
+int http_open( HTTP_HD hd, HTTP_REQ_TYPE reqtype, const char *url,
+ unsigned int flags );
+void http_start_data( HTTP_HD hd );
+int http_wait_response( HTTP_HD hd, unsigned int *ret_status );
+void http_close( HTTP_HD hd );
+
+int http_open_document( HTTP_HD hd, const char *document, unsigned int flags );
#endif /*G10_HTTP_H*/