X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=http.c;h=2142eab9a9068bebb6c2f06d8e1fbfe4ce395b47;hb=afb241db56aa66b7a4a47638682eab63a5057e2a;hp=e81deffd554b40bfeeb90e4650df77c283997858;hpb=7dedd1935ab8400dfbd49fe63c83b74b0d0b68e6;p=m6w6%2Fext-http diff --git a/http.c b/http.c index e81deff..2142eab 100644 --- a/http.c +++ b/http.c @@ -30,6 +30,10 @@ #include "php_http_api.h" #if defined(HAVE_CURL) && HAVE_CURL +# ifdef PHP_WIN32 +# include +# include +# endif #include #endif @@ -481,7 +485,7 @@ PHP_FUNCTION(http_redirect) sprintf(RED, "Redirecting to %s.\n", URI, URI); } efree(URI); - + if ((SUCCESS == http_send_header(LOC)) && (SUCCESS == http_send_status((permanent ? 301 : 302)))) { php_body_write(RED, strlen(RED) TSRMLS_CC); RETURN_TRUE;