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