xref: /PHP-8.1/ext/soap/php_http.h (revision 01b3fc03)
1 /*
2   +----------------------------------------------------------------------+
3   | Copyright (c) The PHP Group                                          |
4   +----------------------------------------------------------------------+
5   | This source file is subject to version 3.01 of the PHP license,      |
6   | that is bundled with this package in the file LICENSE, and is        |
7   | available through the world-wide-web at the following url:           |
8   | https://www.php.net/license/3_01.txt                                 |
9   | If you did not receive a copy of the PHP license and are unable to   |
10   | obtain it through the world-wide-web, please send a note to          |
11   | license@php.net so we can mail you a copy immediately.               |
12   +----------------------------------------------------------------------+
13   | Authors: Brad Lafountain <rodif_bl@yahoo.com>                        |
14   |          Shane Caraveo <shane@caraveo.com>                           |
15   |          Dmitry Stogov <dmitry@php.net>                              |
16   +----------------------------------------------------------------------+
17 */
18 
19 #ifndef PHP_HTTP_H
20 #define PHP_HTTP_H
21 
22 int make_http_soap_request(zval        *this_ptr,
23                            zend_string *request,
24                            char        *location,
25                            char        *soapaction,
26                            int          soap_version,
27                            zval        *response);
28 
29 int proxy_authentication(zval* this_ptr, smart_str* soap_headers);
30 int basic_authentication(zval* this_ptr, smart_str* soap_headers);
31 void http_context_headers(php_stream_context* context,
32                           bool has_authorization,
33                           bool has_proxy_authorization,
34                           bool has_cookies,
35                           smart_str* soap_headers);
36 #endif
37