* Returns FALSE on failure, or *exits* with "304 Not Modified" if the entity is cached.
*
* A log entry will be written to the cache log if the INI entry
* Returns FALSE on failure, or *exits* with "304 Not Modified" if the entity is cached.
*
* A log entry will be written to the cache log if the INI entry
/* {{{ proto bool http_cache_etag([string etag])
*
* Attempts to cache the sent entity by its ETag, either supplied or generated
/* {{{ proto bool http_cache_etag([string etag])
*
* Attempts to cache the sent entity by its ETag, either supplied or generated
*
* If the clients "If-None-Match" header matches the supplied/calculated
* ETag, the body is considered cached on the clients side and
*
* If the clients "If-None-Match" header matches the supplied/calculated
* ETag, the body is considered cached on the clients side and
* Returns FALSE on failure, or *exits* with "304 Not Modified" if the entity is cached.
*
* A log entry is written to the cache log if the INI entry
* Returns FALSE on failure, or *exits* with "304 Not Modified" if the entity is cached.
*
* A log entry is written to the cache log if the INI entry
/* {{{ proto string ob_etaghandler(string data, int mode)
*
* For use with ob_start(). Output buffer handler generating an ETag with
/* {{{ proto string ob_etaghandler(string data, int mode)
*
* For use with ob_start(). Output buffer handler generating an ETag with
* Returns FALSE on failure, or *exits* on success.
*
* A log entry will be written to the redirect log, if the INI entry
* Returns FALSE on failure, or *exits* on success.
*
* A log entry will be written to the redirect log, if the INI entry
}
RETURN_SUCCESS(http_exit_ex(status, LOC, RED, 1));
}
RETURN_SUCCESS(http_exit_ex(status, LOC, RED, 1));
- if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", ¶m, ¶m_len)) {
+ if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|l", ¶m, ¶m_len, &flags)) {
- object_init(return_value);
- if (SUCCESS != http_parse_params(param, HASH_OF(return_value))) {
- zval_dtor(return_value);
+ params = ecalloc(1, sizeof(zval));
+ array_init(params);
+ if (SUCCESS != http_parse_params(param, flags, Z_ARRVAL_P(params))) {
+ zval_dtor(params);
+ FREE_ZVAL(params);
* - cookies: array, list of cookies as associative array
* like array("cookie" => "value")
* - encodecookies: bool, whether to urlencode the cookies (default: true)
* - cookies: array, list of cookies as associative array
* like array("cookie" => "value")
* - encodecookies: bool, whether to urlencode the cookies (default: true)
* - resume: int, byte offset to start the download from;
* if the server supports ranges
* - range: array, array of arrays, each containing two integers,
* - resume: int, byte offset to start the download from;
* if the server supports ranges
* - range: array, array of arrays, each containing two integers,
case HTTP_REQUEST_BODY_CURLPOST:
if (CURLE_OK != (rc = Curl_getFormData(&data, body.data, &size))) {
http_error_ex(HE_WARNING, HTTP_E_RUNTIME, "Could not encode request body: %s", curl_easy_strerror(rc));
case HTTP_REQUEST_BODY_CURLPOST:
if (CURLE_OK != (rc = Curl_getFormData(&data, body.data, &size))) {
http_error_ex(HE_WARNING, HTTP_E_RUNTIME, "Could not encode request body: %s", curl_easy_strerror(rc));
case HTTP_REQUEST_BODY_CSTRING:
RETVAL_STRINGL(body.data, body.size, 0);
case HTTP_REQUEST_BODY_CSTRING:
RETVAL_STRINGL(body.data, body.size, 0);