Lines Matching refs:soap_headers

31 int proxy_authentication(zval* this_ptr, smart_str* soap_headers)  in proxy_authentication()  argument
45 smart_str_append_const(soap_headers, "Proxy-Authorization: Basic "); in proxy_authentication()
46 smart_str_append(soap_headers, buf); in proxy_authentication()
47 smart_str_append_const(soap_headers, "\r\n"); in proxy_authentication()
56 int basic_authentication(zval* this_ptr, smart_str* soap_headers) in basic_authentication() argument
71 smart_str_append_const(soap_headers, "Authorization: Basic "); in basic_authentication()
72 smart_str_append(soap_headers, buf); in basic_authentication()
73 smart_str_append_const(soap_headers, "\r\n"); in basic_authentication()
85 smart_str *soap_headers) in http_context_add_header() argument
135 smart_str_appendl(soap_headers, s, p-s); in http_context_add_header()
136 smart_str_append_const(soap_headers, "\r\n"); in http_context_add_header()
148 smart_str* soap_headers) in http_context_headers() argument
153 …add_header(Z_STRVAL_P(tmp), has_authorization, has_proxy_authorization, has_cookies, soap_headers); in http_context_headers()
158 …d_header(Z_STRVAL_P(value), has_authorization, has_proxy_authorization, has_cookies, soap_headers); in http_context_headers()
246 smart_str soap_headers = {0}; in http_connect() local
255 smart_str_append_const(&soap_headers, "CONNECT "); in http_connect()
256 smart_str_appends(&soap_headers, ZSTR_VAL(phpurl->host)); in http_connect()
257 smart_str_appendc(&soap_headers, ':'); in http_connect()
258 smart_str_append_unsigned(&soap_headers, phpurl->port); in http_connect()
259 smart_str_append_const(&soap_headers, " HTTP/1.1\r\n"); in http_connect()
260 smart_str_append_const(&soap_headers, "Host: "); in http_connect()
261 smart_str_appends(&soap_headers, ZSTR_VAL(phpurl->host)); in http_connect()
263 smart_str_appendc(&soap_headers, ':'); in http_connect()
264 smart_str_append_unsigned(&soap_headers, phpurl->port); in http_connect()
266 smart_str_append_const(&soap_headers, "\r\n"); in http_connect()
267 proxy_authentication(this_ptr, &soap_headers); in http_connect()
268 smart_str_append_const(&soap_headers, "\r\n"); in http_connect()
269 …if (php_stream_write(stream, ZSTR_VAL(soap_headers.s), ZSTR_LEN(soap_headers.s)) != ZSTR_LEN(soap_… in http_connect()
273 smart_str_free(&soap_headers); in http_connect()
346 smart_str soap_headers = {0}; in make_http_soap_request() local
567 smart_str_append_const(&soap_headers, "POST "); in make_http_soap_request()
569 smart_str_appends(&soap_headers, ZSTR_VAL(phpurl->scheme)); in make_http_soap_request()
570 smart_str_append_const(&soap_headers, "://"); in make_http_soap_request()
571 smart_str_appends(&soap_headers, ZSTR_VAL(phpurl->host)); in make_http_soap_request()
572 smart_str_appendc(&soap_headers, ':'); in make_http_soap_request()
573 smart_str_append_unsigned(&soap_headers, phpurl->port); in make_http_soap_request()
576 smart_str_appends(&soap_headers, ZSTR_VAL(phpurl->path)); in make_http_soap_request()
578 smart_str_appendc(&soap_headers, '/'); in make_http_soap_request()
581 smart_str_appendc(&soap_headers, '?'); in make_http_soap_request()
582 smart_str_appends(&soap_headers, ZSTR_VAL(phpurl->query)); in make_http_soap_request()
585 smart_str_appendc(&soap_headers, '#'); in make_http_soap_request()
586 smart_str_appends(&soap_headers, ZSTR_VAL(phpurl->fragment)); in make_http_soap_request()
589 smart_str_append_const(&soap_headers, " HTTP/1.1\r\n"); in make_http_soap_request()
591 smart_str_append_const(&soap_headers, " HTTP/1.0\r\n"); in make_http_soap_request()
593 smart_str_append_const(&soap_headers, "Host: "); in make_http_soap_request()
594 smart_str_appends(&soap_headers, ZSTR_VAL(phpurl->host)); in make_http_soap_request()
596 smart_str_appendc(&soap_headers, ':'); in make_http_soap_request()
597 smart_str_append_unsigned(&soap_headers, phpurl->port); in make_http_soap_request()
600 smart_str_append_const(&soap_headers, "\r\n" in make_http_soap_request()
603 smart_str_append_const(&soap_headers, "\r\n" in make_http_soap_request()
609 smart_str_append_const(&soap_headers, "User-Agent: "); in make_http_soap_request()
610 smart_str_appendl(&soap_headers, Z_STRVAL_P(tmp), Z_STRLEN_P(tmp)); in make_http_soap_request()
611 smart_str_append_const(&soap_headers, "\r\n"); in make_http_soap_request()
617 smart_str_append_const(&soap_headers, "User-Agent: "); in make_http_soap_request()
618 smart_str_appendl(&soap_headers, Z_STRVAL_P(tmp), Z_STRLEN_P(tmp)); in make_http_soap_request()
619 smart_str_append_const(&soap_headers, "\r\n"); in make_http_soap_request()
622 smart_str_append_const(&soap_headers, "User-Agent: "); in make_http_soap_request()
623 smart_str_appends(&soap_headers, FG(user_agent)); in make_http_soap_request()
624 smart_str_append_const(&soap_headers, "\r\n"); in make_http_soap_request()
626 smart_str_append_const(&soap_headers, "User-Agent: PHP-SOAP/"PHP_VERSION"\r\n"); in make_http_soap_request()
629 smart_str_append_smart_str(&soap_headers, &soap_headers_z); in make_http_soap_request()
637 smart_str_append_const(&soap_headers, "Content-Type: "); in make_http_soap_request()
638 smart_str_appendl(&soap_headers, Z_STRVAL_P(tmp), Z_STRLEN_P(tmp)); in make_http_soap_request()
640 smart_str_append_const(&soap_headers, "Content-Type: application/soap+xml; charset=utf-8"); in make_http_soap_request()
643 smart_str_append_const(&soap_headers,"; action=\""); in make_http_soap_request()
644 smart_str_appends(&soap_headers, soapaction); in make_http_soap_request()
645 smart_str_append_const(&soap_headers,"\""); in make_http_soap_request()
647 smart_str_append_const(&soap_headers,"\r\n"); in make_http_soap_request()
654 smart_str_append_const(&soap_headers, "Content-Type: "); in make_http_soap_request()
655 smart_str_appendl(&soap_headers, Z_STRVAL_P(tmp), Z_STRLEN_P(tmp)); in make_http_soap_request()
656 smart_str_append_const(&soap_headers, "\r\n"); in make_http_soap_request()
658 smart_str_append_const(&soap_headers, "Content-Type: text/xml; charset=utf-8\r\n"); in make_http_soap_request()
661 smart_str_append_const(&soap_headers, "SOAPAction: \""); in make_http_soap_request()
662 smart_str_appends(&soap_headers, soapaction); in make_http_soap_request()
663 smart_str_append_const(&soap_headers, "\"\r\n"); in make_http_soap_request()
666 smart_str_append_const(&soap_headers,"Content-Length: "); in make_http_soap_request()
667 smart_str_append_long(&soap_headers, request->len); in make_http_soap_request()
668 smart_str_append_const(&soap_headers, "\r\n"); in make_http_soap_request()
689 smart_str_free(&soap_headers); in make_http_soap_request()
773 smart_str_append_const(&soap_headers, "Authorization: Digest username=\""); in make_http_soap_request()
774 smart_str_appendl(&soap_headers, Z_STRVAL_P(login), Z_STRLEN_P(login)); in make_http_soap_request()
777 smart_str_append_const(&soap_headers, "\", realm=\""); in make_http_soap_request()
778 smart_str_appendl(&soap_headers, Z_STRVAL_P(tmp), Z_STRLEN_P(tmp)); in make_http_soap_request()
782 smart_str_append_const(&soap_headers, "\", nonce=\""); in make_http_soap_request()
783 smart_str_appendl(&soap_headers, Z_STRVAL_P(tmp), Z_STRLEN_P(tmp)); in make_http_soap_request()
785 smart_str_append_const(&soap_headers, "\", uri=\""); in make_http_soap_request()
787 smart_str_appends(&soap_headers, ZSTR_VAL(phpurl->path)); in make_http_soap_request()
789 smart_str_appendc(&soap_headers, '/'); in make_http_soap_request()
792 smart_str_appendc(&soap_headers, '?'); in make_http_soap_request()
793 smart_str_appends(&soap_headers, ZSTR_VAL(phpurl->query)); in make_http_soap_request()
796 smart_str_appendc(&soap_headers, '#'); in make_http_soap_request()
797 smart_str_appends(&soap_headers, ZSTR_VAL(phpurl->fragment)); in make_http_soap_request()
802 smart_str_append_const(&soap_headers, "\", qop=auth"); in make_http_soap_request()
803 smart_str_append_const(&soap_headers, ", nc="); in make_http_soap_request()
804 smart_str_appendl(&soap_headers, nc, 8); in make_http_soap_request()
805 smart_str_append_const(&soap_headers, ", cnonce=\""); in make_http_soap_request()
806 smart_str_appendl(&soap_headers, cnonce, 8); in make_http_soap_request()
808 smart_str_append_const(&soap_headers, "\", response=\""); in make_http_soap_request()
809 smart_str_appendl(&soap_headers, response, 32); in make_http_soap_request()
812 smart_str_append_const(&soap_headers, "\", opaque=\""); in make_http_soap_request()
813 smart_str_appendl(&soap_headers, Z_STRVAL_P(tmp), Z_STRLEN_P(tmp)); in make_http_soap_request()
817 smart_str_append_const(&soap_headers, "\", algorithm=\""); in make_http_soap_request()
818 smart_str_appendl(&soap_headers, Z_STRVAL_P(tmp), Z_STRLEN_P(tmp)); in make_http_soap_request()
820 smart_str_append_const(&soap_headers, "\"\r\n"); in make_http_soap_request()
833 smart_str_append_const(&soap_headers, "Authorization: Basic "); in make_http_soap_request()
834 smart_str_append(&soap_headers, buf); in make_http_soap_request()
835 smart_str_append_const(&soap_headers, "\r\n"); in make_http_soap_request()
843 has_proxy_authorization = proxy_authentication(this_ptr, &soap_headers); in make_http_soap_request()
854 smart_str_append_const(&soap_headers, "Cookie: "); in make_http_soap_request()
870 smart_str_appends(&soap_headers, "; "); in make_http_soap_request()
873 smart_str_append(&soap_headers, key); in make_http_soap_request()
874 smart_str_appendc(&soap_headers, '='); in make_http_soap_request()
875 smart_str_append(&soap_headers, Z_STR_P(value)); in make_http_soap_request()
880 smart_str_append_const(&soap_headers, "\r\n"); in make_http_soap_request()
883 …p_context_headers(context, has_authorization, has_proxy_authorization, has_cookies, &soap_headers); in make_http_soap_request()
885 smart_str_append_const(&soap_headers, "\r\n"); in make_http_soap_request()
886 smart_str_0(&soap_headers); in make_http_soap_request()
891 ZSTR_VAL(soap_headers.s), ZSTR_LEN(soap_headers.s)); in make_http_soap_request()
893 smart_str_appendl(&soap_headers, request->val, request->len); in make_http_soap_request()
894 smart_str_0(&soap_headers); in make_http_soap_request()
896 err = php_stream_write(stream, ZSTR_VAL(soap_headers.s), ZSTR_LEN(soap_headers.s)); in make_http_soap_request()
897 if (err != ZSTR_LEN(soap_headers.s)) { in make_http_soap_request()
909 smart_str_free(&soap_headers); in make_http_soap_request()