X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_send_api.h;h=ff4e2c0d3c319bfc6b3939db17de871605853a7f;hp=9abf1a5718086900e8cbda4cc5f71a9900baa35c;hb=fa1a275e2b5e1b9dfb5bcbf97b51ef2b568e433c;hpb=a8a5b1e48e697c1e989c7b534e22de3ea1f7d561 diff --git a/php_http_send_api.h b/php_http_send_api.h index 9abf1a5..ff4e2c0 100644 --- a/php_http_send_api.h +++ b/php_http_send_api.h @@ -20,6 +20,14 @@ typedef enum { SEND_RSRC } http_send_mode; +#define HTTP_REDIRECT 302L +#define HTTP_REDIRECT_AUTO 0L +#define HTTP_REDIRECT_PERM 301L +#define HTTP_REDIRECT_POST 303L +#define HTTP_REDIRECT_TEMP 307L + +extern PHP_MINIT_FUNCTION(http_send); + #define http_send_status(s) sapi_header_op(SAPI_HEADER_SET_STATUS, (void *) (s) TSRMLS_CC) #define http_send_header(n, v, r) _http_send_header_ex((n), strlen(n), (v), strlen(v), (r) TSRMLS_CC) #define http_send_header_ex(n, nl, v, vl, r, s) _http_send_header_ex((n), (nl), (v), (vl), (r), (s) TSRMLS_CC)