- missing include
[m6w6/ext-http] / php_http.h
1 /*
2 +----------------------------------------------------------------------+
3 | PECL :: http |
4 +----------------------------------------------------------------------+
5 | This source file is subject to version 3.0 of the PHP license, that |
6 | is bundled with this package in the file LICENSE, and is available |
7 | through the world-wide-web at http://www.php.net/license/3_0.txt. |
8 | If you did not receive a copy of the PHP license and are unable to |
9 | obtain it through the world-wide-web, please send a note to |
10 | license@php.net so we can mail you a copy immediately. |
11 +----------------------------------------------------------------------+
12 | Copyright (c) 2004-2005 Michael Wallner <mike@php.net> |
13 +----------------------------------------------------------------------+
14 */
15
16 /* $Id$ */
17
18 #ifndef PHP_EXT_HTTP_H
19 #define PHP_EXT_HTTP_H
20
21 #define HTTP_PEXT_VERSION "0.8.0-dev"
22
23 /* make compile on Win32 */
24 #ifdef HTTP_HAVE_CURL
25 # ifdef PHP_WIN32
26 # include <winsock2.h>
27 # endif
28 # include <curl/curl.h>
29 #endif
30 #include "ext/standard/md5.h"
31 #include "phpstr/phpstr.h"
32
33 extern zend_module_entry http_module_entry;
34 #define phpext_http_ptr &http_module_entry
35
36 ZEND_BEGIN_MODULE_GLOBALS(http)
37 zend_bool etag_started;
38 PHP_MD5_CTX etag_md5;
39 php_stream_statbuf ssb;
40 char *ctype;
41 char *etag;
42 time_t lmod;
43 char *allowed_methods;
44 #ifdef HTTP_HAVE_CURL
45 phpstr curlbuf;
46 # if LIBCURL_VERSION_NUM < 0x070c00
47 char curlerr[CURL_ERROR_SIZE + 1];
48 # endif
49 zend_llist to_free;
50 #endif /* HTTP_HAVE_CURL */
51 ZEND_END_MODULE_GLOBALS(http)
52
53 #ifdef ZTS
54 # include "TSRM.h"
55 # define HTTP_G(v) TSRMG(http_globals_id, zend_http_globals *, v)
56 #else
57 # define HTTP_G(v) (http_globals.v)
58 #endif
59
60 PHP_FUNCTION(http_test);
61 PHP_FUNCTION(http_date);
62 PHP_FUNCTION(http_absolute_uri);
63 PHP_FUNCTION(http_negotiate_language);
64 PHP_FUNCTION(http_negotiate_charset);
65 PHP_FUNCTION(http_redirect);
66 PHP_FUNCTION(http_send_status);
67 PHP_FUNCTION(http_send_last_modified);
68 PHP_FUNCTION(http_send_content_type);
69 PHP_FUNCTION(http_send_content_disposition);
70 PHP_FUNCTION(http_match_modified);
71 PHP_FUNCTION(http_match_etag);
72 PHP_FUNCTION(http_cache_last_modified);
73 PHP_FUNCTION(http_cache_etag);
74 PHP_FUNCTION(http_send_data);
75 PHP_FUNCTION(http_send_file);
76 PHP_FUNCTION(http_send_stream);
77 PHP_FUNCTION(http_chunked_decode);
78 PHP_FUNCTION(http_split_response);
79 PHP_FUNCTION(http_parse_headers);
80 PHP_FUNCTION(http_get_request_headers);
81 #ifdef HTTP_HAVE_CURL
82 PHP_FUNCTION(http_get);
83 PHP_FUNCTION(http_head);
84 PHP_FUNCTION(http_post_data);
85 PHP_FUNCTION(http_post_array);
86 #endif /* HTTP_HAVE_CURL */
87 PHP_FUNCTION(http_auth_basic);
88 PHP_FUNCTION(http_auth_basic_cb);
89 #ifndef ZEND_ENGINE_2
90 PHP_FUNCTION(http_build_query);
91 #endif /* ZEND_ENGINE_2 */
92 PHP_FUNCTION(ob_httpetaghandler);
93
94 PHP_MINIT_FUNCTION(http);
95 PHP_MSHUTDOWN_FUNCTION(http);
96 PHP_RINIT_FUNCTION(http);
97 PHP_RSHUTDOWN_FUNCTION(http);
98 PHP_MINFO_FUNCTION(http);
99
100 #endif /* PHP_HTTP_H */
101
102 /*
103 * Local variables:
104 * tab-width: 4
105 * c-basic-offset: 4
106 * End:
107 * vim600: noet sw=4 ts=4 fdm=marker
108 * vim<600: noet sw=4 ts=4
109 */
110