Lines Matching refs:soap_headers

35 int proxy_authentication(zval* this_ptr, smart_str* soap_headers TSRMLS_DC)  in proxy_authentication()
51 smart_str_append_const(soap_headers, "Proxy-Authorization: Basic "); in proxy_authentication()
52 smart_str_appendl(soap_headers, (char*)buf, len); in proxy_authentication()
53 smart_str_append_const(soap_headers, "\r\n"); in proxy_authentication()
62 int basic_authentication(zval* this_ptr, smart_str* soap_headers TSRMLS_DC) in basic_authentication()
79 smart_str_append_const(soap_headers, "Authorization: Basic "); in basic_authentication()
80 smart_str_appendl(soap_headers, (char*)buf, len); in basic_authentication()
81 smart_str_append_const(soap_headers, "\r\n"); in basic_authentication()
94 smart_str* soap_headers TSRMLS_DC) in http_context_headers()
150 smart_str_appendl(soap_headers, s, p-s); in http_context_headers()
151 smart_str_append_const(soap_headers, "\r\n"); in http_context_headers()
205 smart_str soap_headers = {0}; in http_connect() local
209 smart_str_append_const(&soap_headers, "CONNECT "); in http_connect()
210 smart_str_appends(&soap_headers, phpurl->host); in http_connect()
211 smart_str_appendc(&soap_headers, ':'); in http_connect()
212 smart_str_append_unsigned(&soap_headers, phpurl->port); in http_connect()
213 smart_str_append_const(&soap_headers, " HTTP/1.1\r\n"); in http_connect()
214 smart_str_append_const(&soap_headers, "Host: "); in http_connect()
215 smart_str_appends(&soap_headers, phpurl->host); in http_connect()
217 smart_str_appendc(&soap_headers, ':'); in http_connect()
218 smart_str_append_unsigned(&soap_headers, phpurl->port); in http_connect()
220 smart_str_append_const(&soap_headers, "\r\n"); in http_connect()
221 proxy_authentication(this_ptr, &soap_headers TSRMLS_CC); in http_connect()
222 smart_str_append_const(&soap_headers, "\r\n"); in http_connect()
223 if (php_stream_write(stream, soap_headers.c, soap_headers.len) != soap_headers.len) { in http_connect()
227 smart_str_free(&soap_headers); in http_connect()
277 smart_str soap_headers = {0}; in make_http_soap_request() local
478 smart_str_append_const(&soap_headers, "POST "); in make_http_soap_request()
480 smart_str_appends(&soap_headers, phpurl->scheme); in make_http_soap_request()
481 smart_str_append_const(&soap_headers, "://"); in make_http_soap_request()
482 smart_str_appends(&soap_headers, phpurl->host); in make_http_soap_request()
483 smart_str_appendc(&soap_headers, ':'); in make_http_soap_request()
484 smart_str_append_unsigned(&soap_headers, phpurl->port); in make_http_soap_request()
487 smart_str_appends(&soap_headers, phpurl->path); in make_http_soap_request()
489 smart_str_appendc(&soap_headers, '/'); in make_http_soap_request()
492 smart_str_appendc(&soap_headers, '?'); in make_http_soap_request()
493 smart_str_appends(&soap_headers, phpurl->query); in make_http_soap_request()
496 smart_str_appendc(&soap_headers, '#'); in make_http_soap_request()
497 smart_str_appends(&soap_headers, phpurl->fragment); in make_http_soap_request()
500 smart_str_append_const(&soap_headers, " HTTP/1.1\r\n"); in make_http_soap_request()
502 smart_str_append_const(&soap_headers, " HTTP/1.0\r\n"); in make_http_soap_request()
504 smart_str_append_const(&soap_headers, "Host: "); in make_http_soap_request()
505 smart_str_appends(&soap_headers, phpurl->host); in make_http_soap_request()
507 smart_str_appendc(&soap_headers, ':'); in make_http_soap_request()
508 smart_str_append_unsigned(&soap_headers, phpurl->port); in make_http_soap_request()
511 smart_str_append_const(&soap_headers, "\r\n" in make_http_soap_request()
514 smart_str_append_const(&soap_headers, "\r\n" in make_http_soap_request()
520 smart_str_append_const(&soap_headers, "User-Agent: "); in make_http_soap_request()
521 smart_str_appendl(&soap_headers, Z_STRVAL_PP(tmp), Z_STRLEN_PP(tmp)); in make_http_soap_request()
522 smart_str_append_const(&soap_headers, "\r\n"); in make_http_soap_request()
528 smart_str_append_const(&soap_headers, "User-Agent: "); in make_http_soap_request()
529 smart_str_appendl(&soap_headers, Z_STRVAL_PP(tmp), Z_STRLEN_PP(tmp)); in make_http_soap_request()
530 smart_str_append_const(&soap_headers, "\r\n"); in make_http_soap_request()
533 smart_str_append_const(&soap_headers, "User-Agent: "); in make_http_soap_request()
534 smart_str_appends(&soap_headers, FG(user_agent)); in make_http_soap_request()
535 smart_str_append_const(&soap_headers, "\r\n"); in make_http_soap_request()
537 smart_str_append_const(&soap_headers, "User-Agent: PHP-SOAP/"PHP_VERSION"\r\n"); in make_http_soap_request()
540 smart_str_append(&soap_headers, &soap_headers_z); in make_http_soap_request()
543 smart_str_append_const(&soap_headers,"Content-Type: application/soap+xml; charset=utf-8"); in make_http_soap_request()
545 smart_str_append_const(&soap_headers,"; action=\""); in make_http_soap_request()
546 smart_str_appends(&soap_headers, soapaction); in make_http_soap_request()
547 smart_str_append_const(&soap_headers,"\""); in make_http_soap_request()
549 smart_str_append_const(&soap_headers,"\r\n"); in make_http_soap_request()
551 smart_str_append_const(&soap_headers,"Content-Type: text/xml; charset=utf-8\r\n"); in make_http_soap_request()
553 smart_str_append_const(&soap_headers, "SOAPAction: \""); in make_http_soap_request()
554 smart_str_appends(&soap_headers, soapaction); in make_http_soap_request()
555 smart_str_append_const(&soap_headers, "\"\r\n"); in make_http_soap_request()
558 smart_str_append_const(&soap_headers,"Content-Length: "); in make_http_soap_request()
559 smart_str_append_long(&soap_headers, request_size); in make_http_soap_request()
560 smart_str_append_const(&soap_headers, "\r\n"); in make_http_soap_request()
667 smart_str_append_const(&soap_headers, "Authorization: Digest username=\""); in make_http_soap_request()
668 smart_str_appendl(&soap_headers, Z_STRVAL_PP(login), Z_STRLEN_PP(login)); in make_http_soap_request()
671 smart_str_append_const(&soap_headers, "\", realm=\""); in make_http_soap_request()
672 smart_str_appendl(&soap_headers, Z_STRVAL_PP(tmp), Z_STRLEN_PP(tmp)); in make_http_soap_request()
676 smart_str_append_const(&soap_headers, "\", nonce=\""); in make_http_soap_request()
677 smart_str_appendl(&soap_headers, Z_STRVAL_PP(tmp), Z_STRLEN_PP(tmp)); in make_http_soap_request()
679 smart_str_append_const(&soap_headers, "\", uri=\""); in make_http_soap_request()
681 smart_str_appends(&soap_headers, phpurl->path); in make_http_soap_request()
683 smart_str_appendc(&soap_headers, '/'); in make_http_soap_request()
686 smart_str_appendc(&soap_headers, '?'); in make_http_soap_request()
687 smart_str_appends(&soap_headers, phpurl->query); in make_http_soap_request()
690 smart_str_appendc(&soap_headers, '#'); in make_http_soap_request()
691 smart_str_appends(&soap_headers, phpurl->fragment); in make_http_soap_request()
696 smart_str_append_const(&soap_headers, "\", qop=\"auth"); in make_http_soap_request()
697 smart_str_append_const(&soap_headers, "\", nc=\""); in make_http_soap_request()
698 smart_str_appendl(&soap_headers, nc, 8); in make_http_soap_request()
699 smart_str_append_const(&soap_headers, "\", cnonce=\""); in make_http_soap_request()
700 smart_str_appendl(&soap_headers, cnonce, 8); in make_http_soap_request()
702 smart_str_append_const(&soap_headers, "\", response=\""); in make_http_soap_request()
703 smart_str_appendl(&soap_headers, response, 32); in make_http_soap_request()
706 smart_str_append_const(&soap_headers, "\", opaque=\""); in make_http_soap_request()
707 smart_str_appendl(&soap_headers, Z_STRVAL_PP(tmp), Z_STRLEN_PP(tmp)); in make_http_soap_request()
711 smart_str_append_const(&soap_headers, "\", algorithm=\""); in make_http_soap_request()
712 smart_str_appendl(&soap_headers, Z_STRVAL_PP(tmp), Z_STRLEN_PP(tmp)); in make_http_soap_request()
714 smart_str_append_const(&soap_headers, "\"\r\n"); in make_http_soap_request()
729 smart_str_append_const(&soap_headers, "Authorization: Basic "); in make_http_soap_request()
730 smart_str_appendl(&soap_headers, (char*)buf, len); in make_http_soap_request()
731 smart_str_append_const(&soap_headers, "\r\n"); in make_http_soap_request()
739 has_proxy_authorization = proxy_authentication(this_ptr, &soap_headers TSRMLS_CC); in make_http_soap_request()
752 smart_str_append_const(&soap_headers, "Cookie: "); in make_http_soap_request()
768 smart_str_appendl(&soap_headers, key, strlen(key)); in make_http_soap_request()
769 smart_str_appendc(&soap_headers, '='); in make_http_soap_request()
770 smart_str_appendl(&soap_headers, Z_STRVAL_PP(value), Z_STRLEN_PP(value)); in make_http_soap_request()
771 smart_str_appendc(&soap_headers, ';'); in make_http_soap_request()
777 smart_str_append_const(&soap_headers, "\r\n"); in make_http_soap_request()
781 …headers(context, has_authorization, has_proxy_authorization, has_cookies, &soap_headers TSRMLS_CC); in make_http_soap_request()
783 smart_str_append_const(&soap_headers, "\r\n"); in make_http_soap_request()
784 smart_str_0(&soap_headers); in make_http_soap_request()
787 add_property_stringl(this_ptr, "__last_request_headers", soap_headers.c, soap_headers.len, 1); in make_http_soap_request()
789 smart_str_appendl(&soap_headers, request, request_size); in make_http_soap_request()
790 smart_str_0(&soap_headers); in make_http_soap_request()
792 err = php_stream_write(stream, soap_headers.c, soap_headers.len); in make_http_soap_request()
793 if (err != soap_headers.len) { in make_http_soap_request()
803 smart_str_free(&soap_headers); in make_http_soap_request()