X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_send_api.h;h=aef44909d8ca22f24eb4b7562143da84710eccec;hp=29370b88f4d191a5d33279257b4778ddcece7787;hb=f8bdf6572e8b44f93cf3fbad8846419145b782b7;hpb=edc84b40eb2c5be04492fa98fec5833a030782eb diff --git a/php_http_send_api.h b/php_http_send_api.h index 29370b8..aef4490 100644 --- a/php_http_send_api.h +++ b/php_http_send_api.h @@ -6,7 +6,7 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2005, Michael Wallner | + | Copyright (c) 2004-2006, Michael Wallner | +--------------------------------------------------------------------+ */ @@ -20,6 +20,15 @@ typedef enum { SEND_RSRC } http_send_mode; +#define HTTP_REDIRECT 0L +#define HTTP_REDIRECT_PERM 301L +#define HTTP_REDIRECT_FOUND 302L +#define HTTP_REDIRECT_POST 303L +#define HTTP_REDIRECT_PROXY 305L +#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)