Lines Matching refs:phpurl

161 static php_stream* http_connect(zval* this_ptr, php_url *phpurl, int use_ssl, php_stream_context *c…  in http_connect()  argument
182 host = phpurl->host; in http_connect()
183 port = phpurl->port; in http_connect()
246 ZVAL_STRING(&ssl_proxy_peer_name, phpurl->host); in http_connect()
252 smart_str_appends(&soap_headers, phpurl->host); in http_connect()
254 smart_str_append_unsigned(&soap_headers, phpurl->port); in http_connect()
257 smart_str_appends(&soap_headers, phpurl->host); in http_connect()
258 if (phpurl->port != 80) { in http_connect()
260 smart_str_append_unsigned(&soap_headers, phpurl->port); in http_connect()
347 php_url *phpurl = NULL; in make_http_soap_request() local
429 phpurl = php_url_parse(location); in make_http_soap_request()
446 if (phpurl == NULL || phpurl->host == NULL) { in make_http_soap_request()
447 if (phpurl != NULL) {php_url_free(phpurl);} in make_http_soap_request()
457 if (phpurl->scheme != NULL && strcmp(phpurl->scheme, "https") == 0) { in make_http_soap_request()
459 } else if (phpurl->scheme == NULL || strcmp(phpurl->scheme, "http") != 0) { in make_http_soap_request()
460 php_url_free(phpurl); in make_http_soap_request()
472 php_url_free(phpurl); in make_http_soap_request()
482 if (phpurl->port == 0) { in make_http_soap_request()
483 phpurl->port = use_ssl ? 443 : 80; in make_http_soap_request()
495 strcmp(orig->host, phpurl->host) == 0 && in make_http_soap_request()
496 orig->port == phpurl->port))) { in make_http_soap_request()
518 stream = http_connect(this_ptr, phpurl, use_ssl, context, &use_proxy); in make_http_soap_request()
525 php_url_free(phpurl); in make_http_soap_request()
539 zend_resource *ret = zend_register_resource(phpurl, le_url); in make_http_soap_request()
556 smart_str_appends(&soap_headers, phpurl->scheme); in make_http_soap_request()
558 smart_str_appends(&soap_headers, phpurl->host); in make_http_soap_request()
560 smart_str_append_unsigned(&soap_headers, phpurl->port); in make_http_soap_request()
562 if (phpurl->path) { in make_http_soap_request()
563 smart_str_appends(&soap_headers, phpurl->path); in make_http_soap_request()
567 if (phpurl->query) { in make_http_soap_request()
569 smart_str_appends(&soap_headers, phpurl->query); in make_http_soap_request()
571 if (phpurl->fragment) { in make_http_soap_request()
573 smart_str_appends(&soap_headers, phpurl->fragment); in make_http_soap_request()
581 smart_str_appends(&soap_headers, phpurl->host); in make_http_soap_request()
582 if (phpurl->port != (use_ssl?443:80)) { in make_http_soap_request()
584 smart_str_append_unsigned(&soap_headers, phpurl->port); in make_http_soap_request()
723 if (phpurl->path) { in make_http_soap_request()
724 PHP_MD5Update(&md5ctx, (unsigned char*)phpurl->path, strlen(phpurl->path)); in make_http_soap_request()
728 if (phpurl->query) { in make_http_soap_request()
730 PHP_MD5Update(&md5ctx, (unsigned char*)phpurl->query, strlen(phpurl->query)); in make_http_soap_request()
771 if (phpurl->path) { in make_http_soap_request()
772 smart_str_appends(&soap_headers, phpurl->path); in make_http_soap_request()
776 if (phpurl->query) { in make_http_soap_request()
778 smart_str_appends(&soap_headers, phpurl->query); in make_http_soap_request()
780 if (phpurl->fragment) { in make_http_soap_request()
782 smart_str_appends(&soap_headers, phpurl->fragment); in make_http_soap_request()
857 strncmp(phpurl->path?phpurl->path:"/",Z_STRVAL_P(tmp),Z_STRLEN_P(tmp)) == 0) && in make_http_soap_request()
860 in_domain(phpurl->host,Z_STRVAL_P(tmp))) && in make_http_soap_request()
1028 char *t = phpurl->path?phpurl->path:"/"; in make_http_soap_request()
1035 add_index_string(&zcookie, 2, phpurl->host); in make_http_soap_request()
1130 new_url->scheme = phpurl->scheme ? estrdup(phpurl->scheme) : NULL; in make_http_soap_request()
1131 new_url->host = phpurl->host ? estrdup(phpurl->host) : NULL; in make_http_soap_request()
1132 new_url->port = phpurl->port; in make_http_soap_request()
1134 if (phpurl->path) { in make_http_soap_request()
1135 char *t = phpurl->path; in make_http_soap_request()
1154 phpurl = new_url; in make_http_soap_request()
1223 *new_url = *phpurl; in make_http_soap_request()
1224 if (phpurl->scheme) phpurl->scheme = estrdup(phpurl->scheme); in make_http_soap_request()
1225 if (phpurl->user) phpurl->user = estrdup(phpurl->user); in make_http_soap_request()
1226 if (phpurl->pass) phpurl->pass = estrdup(phpurl->pass); in make_http_soap_request()
1227 if (phpurl->host) phpurl->host = estrdup(phpurl->host); in make_http_soap_request()
1228 if (phpurl->path) phpurl->path = estrdup(phpurl->path); in make_http_soap_request()
1229 if (phpurl->query) phpurl->query = estrdup(phpurl->query); in make_http_soap_request()
1230 if (phpurl->fragment) phpurl->fragment = estrdup(phpurl->fragment); in make_http_soap_request()
1231 phpurl = new_url; in make_http_soap_request()