X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=http_info_api.c;h=8e45de36cd8b1179866c59371c403ac40f73dc4a;hb=c64365b84429b86b4af55b283de3758af38d9369;hp=b1ffcbc4c8ea9372ef76d4e7e7d8c9025e7c109f;hpb=7b88d9022c90eb12e5fe195af8644935141c9d68;p=m6w6%2Fext-http diff --git a/http_info_api.c b/http_info_api.c index b1ffcbc..8e45de3 100644 --- a/http_info_api.c +++ b/http_info_api.c @@ -6,16 +6,12 @@ | 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 | +--------------------------------------------------------------------+ */ /* $Id$ */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - #include "php_http.h" #include "php_http_api.h" @@ -31,7 +27,7 @@ PHP_HTTP_API void _http_info_default_callback(void **nothing, HashTable **header { case IS_HTTP_REQUEST: add_assoc_string(&array, "Request Method", HTTP_INFO(info).request.method, 1); - add_assoc_string(&array, "Request Uri", HTTP_INFO(info).request.URI, 1); + add_assoc_string(&array, "Request Url", HTTP_INFO(info).request.url, 1); break; case IS_HTTP_RESPONSE: @@ -49,7 +45,7 @@ PHP_HTTP_API void _http_info_dtor(http_info *info) { case IS_HTTP_REQUEST: STR_SET(i->request.method, NULL); - STR_SET(i->request.URI, NULL); + STR_SET(i->request.url, NULL); break; case IS_HTTP_RESPONSE: @@ -120,10 +116,10 @@ PHP_HTTP_API STATUS _http_info_parse_ex(const char *pre_header, http_info *info, info->type = IS_HTTP_REQUEST; if (url && http > url) { HTTP_INFO(info).request.method = estrndup(pre_header, url - pre_header); - HTTP_INFO(info).request.URI = estrndup(url + 1, http - url - 2); + HTTP_INFO(info).request.url = estrndup(url + 1, http - url - 2); } else { HTTP_INFO(info).request.method = ecalloc(1,1); - HTTP_INFO(info).request.URI = ecalloc(1,1); + HTTP_INFO(info).request.url = ecalloc(1,1); } return SUCCESS;