2 +----------------------------------------------------------------------+
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 +----------------------------------------------------------------------+
18 #ifndef PHP_EXT_HTTP_H
19 #define PHP_EXT_HTTP_H
21 #define HTTP_PEXT_VERSION "0.8.0-dev"
23 /* make compile on Win32 */
26 # include <winsock2.h>
28 # include <curl/curl.h>
30 #include "ext/standard/md5.h"
31 #include "phpstr/phpstr.h"
33 extern zend_module_entry http_module_entry
;
34 #define phpext_http_ptr &http_module_entry
36 ZEND_BEGIN_MODULE_GLOBALS(http
)
37 zend_bool etag_started
;
39 php_stream_statbuf ssb
;
43 char *allowed_methods
;
46 # if LIBCURL_VERSION_NUM < 0x070c00
47 char curlerr
[CURL_ERROR_SIZE
+ 1];
50 #endif /* HTTP_HAVE_CURL */
51 ZEND_END_MODULE_GLOBALS(http
)
55 # define HTTP_G(v) TSRMG(http_globals_id, zend_http_globals *, v)
57 # define HTTP_G(v) (http_globals.v)
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
);
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
);
90 PHP_FUNCTION(http_build_query
);
91 #endif /* ZEND_ENGINE_2 */
92 PHP_FUNCTION(ob_httpetaghandler
);
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
);
100 #endif /* PHP_HTTP_H */
107 * vim600: noet sw=4 ts=4 fdm=marker
108 * vim<600: noet sw=4 ts=4