# include "php_http_request_object.h"
#endif
-ZEND_EXTERN_MODULE_GLOBALS(http);
-
/* {{{ cruft for thread safe SSL crypto locks */
#if defined(ZTS) && defined(HTTP_HAVE_SSL)
# ifdef PHP_WIN32
memset(r, 0, sizeof(http_request));
r->ch = ch;
- r->url = (url && *url) ? estrdup(url) : NULL;
+ r->url = (url) ? http_absolute_url(url) : NULL;
r->meth = (meth > 0) ? meth : HTTP_GET;
phpstr_init(&r->conv.request);