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()
700 if (phpurl->path) { in make_http_soap_request()
701 PHP_MD5Update(&md5ctx, (unsigned char*)phpurl->path, strlen(phpurl->path)); in make_http_soap_request()
705 if (phpurl->query) { in make_http_soap_request()
707 PHP_MD5Update(&md5ctx, (unsigned char*)phpurl->query, strlen(phpurl->query)); in make_http_soap_request()
748 if (phpurl->path) { in make_http_soap_request()
749 smart_str_appends(&soap_headers, phpurl->path); in make_http_soap_request()
753 if (phpurl->query) { in make_http_soap_request()
755 smart_str_appends(&soap_headers, phpurl->query); in make_http_soap_request()
757 if (phpurl->fragment) { in make_http_soap_request()
759 smart_str_appends(&soap_headers, phpurl->fragment); in make_http_soap_request()
834 strncmp(phpurl->path?phpurl->path:"/",Z_STRVAL_P(tmp),Z_STRLEN_P(tmp)) == 0) && in make_http_soap_request()
837 in_domain(phpurl->host,Z_STRVAL_P(tmp))) && in make_http_soap_request()
1005 char *t = phpurl->path?phpurl->path:"/"; in make_http_soap_request()
1012 add_index_string(&zcookie, 2, phpurl->host); in make_http_soap_request()
1107 new_url->scheme = phpurl->scheme ? estrdup(phpurl->scheme) : NULL; in make_http_soap_request()
1108 new_url->host = phpurl->host ? estrdup(phpurl->host) : NULL; in make_http_soap_request()
1109 new_url->port = phpurl->port; in make_http_soap_request()
1111 if (phpurl->path) { in make_http_soap_request()
1112 char *t = phpurl->path; in make_http_soap_request()
1131 phpurl = new_url; in make_http_soap_request()
1200 *new_url = *phpurl; in make_http_soap_request()
1201 if (phpurl->scheme) phpurl->scheme = estrdup(phpurl->scheme); in make_http_soap_request()
1202 if (phpurl->user) phpurl->user = estrdup(phpurl->user); in make_http_soap_request()
1203 if (phpurl->pass) phpurl->pass = estrdup(phpurl->pass); in make_http_soap_request()
1204 if (phpurl->host) phpurl->host = estrdup(phpurl->host); in make_http_soap_request()
1205 if (phpurl->path) phpurl->path = estrdup(phpurl->path); in make_http_soap_request()
1206 if (phpurl->query) phpurl->query = estrdup(phpurl->query); in make_http_soap_request()
1207 if (phpurl->fragment) phpurl->fragment = estrdup(phpurl->fragment); in make_http_soap_request()
1208 phpurl = new_url; in make_http_soap_request()