xref: /PHP-5.6/ext/soap/php_http.h (revision 49493a2d)
1 /*
2   +----------------------------------------------------------------------+
3   | PHP Version 5                                                        |
4   +----------------------------------------------------------------------+
5   | Copyright (c) 1997-2016 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@zend.com>                             |
18   +----------------------------------------------------------------------+
19 */
20 /* $Id$ */
21 
22 #ifndef PHP_HTTP_H
23 #define PHP_HTTP_H
24 
25 int make_http_soap_request(zval  *this_ptr,
26                            char  *request,
27                            int    request_size,
28                            char  *location,
29                            char  *soapaction,
30                            int    soap_version,
31                            char **response,
32                            int   *response_len TSRMLS_DC);
33 
34 int proxy_authentication(zval* this_ptr, smart_str* soap_headers TSRMLS_DC);
35 int basic_authentication(zval* this_ptr, smart_str* soap_headers TSRMLS_DC);
36 void http_context_headers(php_stream_context* context,
37                           zend_bool has_authorization,
38                           zend_bool has_proxy_authorization,
39                           zend_bool has_cookies,
40                           smart_str* soap_headers TSRMLS_DC);
41 #endif
42