Lines Matching refs:soap_headers

35 int proxy_authentication(zval* this_ptr, smart_str* soap_headers TSRMLS_DC)  in proxy_authentication()
53 smart_str_append_const(soap_headers, "Proxy-Authorization: Basic "); in proxy_authentication()
54 smart_str_appendl(soap_headers, (char*)buf, len); in proxy_authentication()
55 smart_str_append_const(soap_headers, "\r\n"); in proxy_authentication()
64 int basic_authentication(zval* this_ptr, smart_str* soap_headers TSRMLS_DC) in basic_authentication()
83 smart_str_append_const(soap_headers, "Authorization: Basic "); in basic_authentication()
84 smart_str_appendl(soap_headers, (char*)buf, len); in basic_authentication()
85 smart_str_append_const(soap_headers, "\r\n"); in basic_authentication()
98 smart_str* soap_headers TSRMLS_DC) in http_context_headers()
154 smart_str_appendl(soap_headers, s, p-s); in http_context_headers()
155 smart_str_append_const(soap_headers, "\r\n"); in http_context_headers()
244 smart_str soap_headers = {0}; in http_connect() local
248 smart_str_append_const(&soap_headers, "CONNECT "); in http_connect()
249 smart_str_appends(&soap_headers, phpurl->host); in http_connect()
250 smart_str_appendc(&soap_headers, ':'); in http_connect()
251 smart_str_append_unsigned(&soap_headers, phpurl->port); in http_connect()
252 smart_str_append_const(&soap_headers, " HTTP/1.1\r\n"); in http_connect()
253 smart_str_append_const(&soap_headers, "Host: "); in http_connect()
254 smart_str_appends(&soap_headers, phpurl->host); in http_connect()
256 smart_str_appendc(&soap_headers, ':'); in http_connect()
257 smart_str_append_unsigned(&soap_headers, phpurl->port); in http_connect()
259 smart_str_append_const(&soap_headers, "\r\n"); in http_connect()
260 proxy_authentication(this_ptr, &soap_headers TSRMLS_CC); in http_connect()
261 smart_str_append_const(&soap_headers, "\r\n"); in http_connect()
262 if (php_stream_write(stream, soap_headers.c, soap_headers.len) != soap_headers.len) { in http_connect()
266 smart_str_free(&soap_headers); in http_connect()
343 smart_str soap_headers = {0}; in make_http_soap_request() local
544 smart_str_append_const(&soap_headers, "POST "); in make_http_soap_request()
546 smart_str_appends(&soap_headers, phpurl->scheme); in make_http_soap_request()
547 smart_str_append_const(&soap_headers, "://"); in make_http_soap_request()
548 smart_str_appends(&soap_headers, phpurl->host); in make_http_soap_request()
549 smart_str_appendc(&soap_headers, ':'); in make_http_soap_request()
550 smart_str_append_unsigned(&soap_headers, phpurl->port); in make_http_soap_request()
553 smart_str_appends(&soap_headers, phpurl->path); in make_http_soap_request()
555 smart_str_appendc(&soap_headers, '/'); in make_http_soap_request()
558 smart_str_appendc(&soap_headers, '?'); in make_http_soap_request()
559 smart_str_appends(&soap_headers, phpurl->query); in make_http_soap_request()
562 smart_str_appendc(&soap_headers, '#'); in make_http_soap_request()
563 smart_str_appends(&soap_headers, phpurl->fragment); in make_http_soap_request()
566 smart_str_append_const(&soap_headers, " HTTP/1.1\r\n"); in make_http_soap_request()
568 smart_str_append_const(&soap_headers, " HTTP/1.0\r\n"); in make_http_soap_request()
570 smart_str_append_const(&soap_headers, "Host: "); in make_http_soap_request()
571 smart_str_appends(&soap_headers, phpurl->host); in make_http_soap_request()
573 smart_str_appendc(&soap_headers, ':'); in make_http_soap_request()
574 smart_str_append_unsigned(&soap_headers, phpurl->port); in make_http_soap_request()
580 smart_str_append_const(&soap_headers, "\r\n" in make_http_soap_request()
583 smart_str_append_const(&soap_headers, "\r\n" in make_http_soap_request()
589 smart_str_append_const(&soap_headers, "User-Agent: "); in make_http_soap_request()
590 smart_str_appendl(&soap_headers, Z_STRVAL_PP(tmp), Z_STRLEN_PP(tmp)); in make_http_soap_request()
591 smart_str_append_const(&soap_headers, "\r\n"); in make_http_soap_request()
597 smart_str_append_const(&soap_headers, "User-Agent: "); in make_http_soap_request()
598 smart_str_appendl(&soap_headers, Z_STRVAL_PP(tmp), Z_STRLEN_PP(tmp)); in make_http_soap_request()
599 smart_str_append_const(&soap_headers, "\r\n"); in make_http_soap_request()
602 smart_str_append_const(&soap_headers, "User-Agent: "); in make_http_soap_request()
603 smart_str_appends(&soap_headers, FG(user_agent)); in make_http_soap_request()
604 smart_str_append_const(&soap_headers, "\r\n"); in make_http_soap_request()
606 smart_str_append_const(&soap_headers, "User-Agent: PHP-SOAP/"PHP_VERSION"\r\n"); in make_http_soap_request()
609 smart_str_append(&soap_headers, &soap_headers_z); in make_http_soap_request()
612 smart_str_append_const(&soap_headers,"Content-Type: application/soap+xml; charset=utf-8"); in make_http_soap_request()
614 smart_str_append_const(&soap_headers,"; action=\""); in make_http_soap_request()
615 smart_str_appends(&soap_headers, soapaction); in make_http_soap_request()
616 smart_str_append_const(&soap_headers,"\""); in make_http_soap_request()
618 smart_str_append_const(&soap_headers,"\r\n"); in make_http_soap_request()
620 smart_str_append_const(&soap_headers,"Content-Type: text/xml; charset=utf-8\r\n"); in make_http_soap_request()
622 smart_str_append_const(&soap_headers, "SOAPAction: \""); in make_http_soap_request()
623 smart_str_appends(&soap_headers, soapaction); in make_http_soap_request()
624 smart_str_append_const(&soap_headers, "\"\r\n"); in make_http_soap_request()
627 smart_str_append_const(&soap_headers,"Content-Length: "); in make_http_soap_request()
628 smart_str_append_long(&soap_headers, request_size); in make_http_soap_request()
629 smart_str_append_const(&soap_headers, "\r\n"); in make_http_soap_request()
736 smart_str_append_const(&soap_headers, "Authorization: Digest username=\""); in make_http_soap_request()
737 smart_str_appendl(&soap_headers, Z_STRVAL_PP(login), Z_STRLEN_PP(login)); in make_http_soap_request()
740 smart_str_append_const(&soap_headers, "\", realm=\""); in make_http_soap_request()
741 smart_str_appendl(&soap_headers, Z_STRVAL_PP(tmp), Z_STRLEN_PP(tmp)); in make_http_soap_request()
745 smart_str_append_const(&soap_headers, "\", nonce=\""); in make_http_soap_request()
746 smart_str_appendl(&soap_headers, Z_STRVAL_PP(tmp), Z_STRLEN_PP(tmp)); in make_http_soap_request()
748 smart_str_append_const(&soap_headers, "\", uri=\""); in make_http_soap_request()
750 smart_str_appends(&soap_headers, phpurl->path); in make_http_soap_request()
752 smart_str_appendc(&soap_headers, '/'); in make_http_soap_request()
755 smart_str_appendc(&soap_headers, '?'); in make_http_soap_request()
756 smart_str_appends(&soap_headers, phpurl->query); in make_http_soap_request()
759 smart_str_appendc(&soap_headers, '#'); in make_http_soap_request()
760 smart_str_appends(&soap_headers, phpurl->fragment); in make_http_soap_request()
765 smart_str_append_const(&soap_headers, "\", qop=\"auth"); in make_http_soap_request()
766 smart_str_append_const(&soap_headers, "\", nc=\""); in make_http_soap_request()
767 smart_str_appendl(&soap_headers, nc, 8); in make_http_soap_request()
768 smart_str_append_const(&soap_headers, "\", cnonce=\""); in make_http_soap_request()
769 smart_str_appendl(&soap_headers, cnonce, 8); in make_http_soap_request()
771 smart_str_append_const(&soap_headers, "\", response=\""); in make_http_soap_request()
772 smart_str_appendl(&soap_headers, response, 32); in make_http_soap_request()
775 smart_str_append_const(&soap_headers, "\", opaque=\""); in make_http_soap_request()
776 smart_str_appendl(&soap_headers, Z_STRVAL_PP(tmp), Z_STRLEN_PP(tmp)); in make_http_soap_request()
780 smart_str_append_const(&soap_headers, "\", algorithm=\""); in make_http_soap_request()
781 smart_str_appendl(&soap_headers, Z_STRVAL_PP(tmp), Z_STRLEN_PP(tmp)); in make_http_soap_request()
783 smart_str_append_const(&soap_headers, "\"\r\n"); in make_http_soap_request()
798 smart_str_append_const(&soap_headers, "Authorization: Basic "); in make_http_soap_request()
799 smart_str_appendl(&soap_headers, (char*)buf, len); in make_http_soap_request()
800 smart_str_append_const(&soap_headers, "\r\n"); in make_http_soap_request()
808 has_proxy_authorization = proxy_authentication(this_ptr, &soap_headers TSRMLS_CC); in make_http_soap_request()
822 smart_str_append_const(&soap_headers, "Cookie: "); in make_http_soap_request()
841 smart_str_appendl(&soap_headers, key, strlen(key)); in make_http_soap_request()
842 smart_str_appendc(&soap_headers, '='); in make_http_soap_request()
843 smart_str_appendl(&soap_headers, Z_STRVAL_PP(value), Z_STRLEN_PP(value)); in make_http_soap_request()
844 smart_str_appendc(&soap_headers, ';'); in make_http_soap_request()
850 smart_str_append_const(&soap_headers, "\r\n"); in make_http_soap_request()
854 …headers(context, has_authorization, has_proxy_authorization, has_cookies, &soap_headers TSRMLS_CC); in make_http_soap_request()
856 smart_str_append_const(&soap_headers, "\r\n"); in make_http_soap_request()
857 smart_str_0(&soap_headers); in make_http_soap_request()
860 add_property_stringl(this_ptr, "__last_request_headers", soap_headers.c, soap_headers.len, 1); in make_http_soap_request()
862 smart_str_appendl(&soap_headers, request, request_size); in make_http_soap_request()
863 smart_str_0(&soap_headers); in make_http_soap_request()
865 err = php_stream_write(stream, soap_headers.c, soap_headers.len); in make_http_soap_request()
866 if (err != soap_headers.len) { in make_http_soap_request()
876 smart_str_free(&soap_headers); in make_http_soap_request()