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
;
45 # if LIBCURL_VERSION_NUM < 0x070c00
46 char curlerr
[CURL_ERROR_SIZE
+ 1];
49 #endif /* HTTP_HAVE_CURL */
50 ZEND_END_MODULE_GLOBALS(http
)
54 # define HTTP_G(v) TSRMG(http_globals_id, zend_http_globals *, v)
56 # define HTTP_G(v) (http_globals.v)
59 PHP_FUNCTION(http_test
);
60 PHP_FUNCTION(http_date
);
61 PHP_FUNCTION(http_absolute_uri
);
62 PHP_FUNCTION(http_negotiate_language
);
63 PHP_FUNCTION(http_negotiate_charset
);
64 PHP_FUNCTION(http_redirect
);
65 PHP_FUNCTION(http_send_status
);
66 PHP_FUNCTION(http_send_last_modified
);
67 PHP_FUNCTION(http_send_content_type
);
68 PHP_FUNCTION(http_send_content_disposition
);
69 PHP_FUNCTION(http_match_modified
);
70 PHP_FUNCTION(http_match_etag
);
71 PHP_FUNCTION(http_cache_last_modified
);
72 PHP_FUNCTION(http_cache_etag
);
73 PHP_FUNCTION(http_send_data
);
74 PHP_FUNCTION(http_send_file
);
75 PHP_FUNCTION(http_send_stream
);
76 PHP_FUNCTION(http_chunked_decode
);
77 PHP_FUNCTION(http_split_response
);
78 PHP_FUNCTION(http_parse_headers
);
79 PHP_FUNCTION(http_get_request_headers
);
81 PHP_FUNCTION(http_get
);
82 PHP_FUNCTION(http_head
);
83 PHP_FUNCTION(http_post_data
);
84 PHP_FUNCTION(http_post_array
);
85 #endif /* HTTP_HAVE_CURL */
86 PHP_FUNCTION(http_auth_basic
);
87 PHP_FUNCTION(http_auth_basic_cb
);
89 PHP_FUNCTION(http_build_query
);
90 #endif /* ZEND_ENGINE_2 */
91 PHP_FUNCTION(ob_httpetaghandler
);
93 PHP_MINIT_FUNCTION(http
);
94 PHP_MSHUTDOWN_FUNCTION(http
);
95 PHP_RINIT_FUNCTION(http
);
96 PHP_RSHUTDOWN_FUNCTION(http
);
97 PHP_MINFO_FUNCTION(http
);
99 #endif /* PHP_HTTP_H */
106 * vim600: noet sw=4 ts=4 fdm=marker
107 * vim<600: noet sw=4 ts=4