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_HTTP_URL_API_H
19 #define PHP_HTTP_URL_API_H
21 #include "php_http_std_defs.h"
23 #define http_absolute_uri(url) http_absolute_url(url)
24 #define http_absolute_uri_ex(url, url_len, proto, proto_len, host, host_len, port) _http_absolute_url_ex((url), (url_len), (proto), (proto_len), (host), (host_len), (port) TSRMLS_CC)
25 #define http_absolute_url(url) http_absolute_url_ex((url), strlen(url), NULL, 0, NULL, 0, 0)
26 #define http_absolute_url_ex(url, url_len, proto, proto_len, host, host_len, port) _http_absolute_url_ex((url), (url_len), (proto), (proto_len), (host), (host_len), (port) TSRMLS_CC)
27 PHP_HTTP_API
char *_http_absolute_url_ex(const char *url
, size_t url_len
, const char *proto
, size_t proto_len
, const char *host
, size_t host_len
, unsigned port TSRMLS_DC
);
29 #define http_urlencode_hash(h, q) _http_urlencode_hash_ex((h), 1, NULL, 0, (q), NULL TSRMLS_CC)
30 #define http_urlencode_hash_ex(h, o, p, pl, q, ql) _http_urlencode_hash_ex((h), (o), (p), (pl), (q), (ql) TSRMLS_CC)
31 PHP_HTTP_API STATUS
_http_urlencode_hash_ex(HashTable
*hash
, zend_bool override_argsep
, char *pre_encoded_data
, size_t pre_encoded_len
, char **encoded_data
, size_t *encoded_len TSRMLS_DC
);
33 #define http_urlencode_hash_implementation(ht, formstr, argsep) \
34 http_urlencode_hash_implementation_ex((ht), (formstr), (argsep), NULL, 0, NULL, 0, NULL, 0, NULL)
35 #define http_urlencode_hash_implementation_ex(ht, formstr, argsep, np, npl, kp, kpl, ks, ksl, type) \
36 _http_urlencode_hash_implementation_ex((ht), (formstr), (argsep), (np), (npl), (kp), (kpl), (ks), (ksl), (type) TSRMLS_CC)
37 PHP_HTTP_API STATUS
_http_urlencode_hash_implementation_ex(
38 HashTable
*ht
, phpstr
*formstr
, char *arg_sep
,
39 const char *num_prefix
, int num_prefix_len
,
40 const char *key_prefix
, int key_prefix_len
,
41 const char *key_suffix
, int key_suffix_len
,
42 zval
*type TSRMLS_DC
);
52 * vim600: noet sw=4 ts=4 fdm=marker
53 * vim<600: noet sw=4 ts=4