2 +----------------------------------------------------------------------+
4 +----------------------------------------------------------------------+
5 | This source file is subject to version 3.0 of the PHP license, that |
6 | is bundled with this package in the file LICENSE, and is available |
7 | through the world-wide-web at http://www.php.net/license/3_0.txt. |
8 | If you did not receive a copy of the PHP license and are unable to |
9 | obtain it through the world-wide-web, please send a note to |
10 | license@php.net so we can mail you a copy immediately. |
11 +----------------------------------------------------------------------+
12 | Copyright (c) 2004-2005 Michael Wallner <mike@php.net> |
13 +----------------------------------------------------------------------+
18 #ifndef PHP_HTTP_REQUEST_OBJECT_H
19 #define PHP_HTTP_REQUEST_OBJECT_H
24 # include <winsock2.h>
27 #include <curl/curl.h>
29 #include "phpstr/phpstr.h"
35 } http_request_object
;
37 extern zend_class_entry
*http_request_object_ce
;
38 extern zend_function_entry http_request_object_fe
[];
40 #define http_request_object_init() _http_request_object_init(INIT_FUNC_ARGS_PASSTHRU)
41 extern void _http_request_object_init(INIT_FUNC_ARGS
);
42 #define http_request_object_new _http_request_object_new
43 extern zend_object_value
_http_request_object_new(zend_class_entry
*ce TSRMLS_DC
);
44 #define http_request_object_free _http_request_object_free
45 extern void _http_request_object_free(zend_object
*object TSRMLS_DC
);
47 PHP_METHOD(HttpRequest
, __construct
);
48 PHP_METHOD(HttpRequest
, __destruct
);
49 PHP_METHOD(HttpRequest
, setOptions
);
50 PHP_METHOD(HttpRequest
, getOptions
);
51 PHP_METHOD(HttpRequest
, unsetOptions
);
52 PHP_METHOD(HttpRequest
, setSslOptions
);
53 PHP_METHOD(HttpRequest
, getSslOptions
);
54 PHP_METHOD(HttpRequest
, unsetSslOptions
);
55 PHP_METHOD(HttpRequest
, addHeaders
);
56 PHP_METHOD(HttpRequest
, getHeaders
);
57 PHP_METHOD(HttpRequest
, unsetHeaders
);
58 PHP_METHOD(HttpRequest
, addCookies
);
59 PHP_METHOD(HttpRequest
, getCookies
);
60 PHP_METHOD(HttpRequest
, unsetCookies
);
61 PHP_METHOD(HttpRequest
, setMethod
);
62 PHP_METHOD(HttpRequest
, getMethod
);
63 PHP_METHOD(HttpRequest
, setURL
);
64 PHP_METHOD(HttpRequest
, getURL
);
65 PHP_METHOD(HttpRequest
, setContentType
);
66 PHP_METHOD(HttpRequest
, getContentType
);
67 PHP_METHOD(HttpRequest
, setQueryData
);
68 PHP_METHOD(HttpRequest
, getQueryData
);
69 PHP_METHOD(HttpRequest
, addQueryData
);
70 PHP_METHOD(HttpRequest
, unsetQueryData
);
71 PHP_METHOD(HttpRequest
, setPostFields
);
72 PHP_METHOD(HttpRequest
, getPostFields
);
73 PHP_METHOD(HttpRequest
, addPostFields
);
74 PHP_METHOD(HttpRequest
, unsetPostFields
);
75 PHP_METHOD(HttpRequest
, addPostFile
);
76 PHP_METHOD(HttpRequest
, getPostFiles
);
77 PHP_METHOD(HttpRequest
, unsetPostFiles
);
78 PHP_METHOD(HttpRequest
, send
);
79 PHP_METHOD(HttpRequest
, getResponseData
);
80 PHP_METHOD(HttpRequest
, getResponseHeader
);
81 PHP_METHOD(HttpRequest
, getResponseCookie
);
82 PHP_METHOD(HttpRequest
, getResponseCode
);
83 PHP_METHOD(HttpRequest
, getResponseBody
);
84 PHP_METHOD(HttpRequest
, getResponseInfo
);
85 PHP_METHOD(HttpRequest
, getResponseMessage
);
96 * vim600: noet sw=4 ts=4 fdm=marker
97 * vim<600: noet sw=4 ts=4