ReactOS 0.4.15-dev-7704-gc07eb9f
httprequest.idl
Go to the documentation of this file.
1/*
2 * Copyright 2011 Hans Leidekker for CodeWeavers
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17 */
18
19#include "httprequestid.h"
20
21import "oaidl.idl";
22
23#ifndef __WIDL__
24#define threading(model)
25#define progid(str)
26#endif
27
28[
29 uuid(662901fc-6951-4854-9eb2-d9a2570f2b2e),
30 helpstring("Microsoft WinHTTP Services, version 5.1"),
31 lcid(0x0000),
32 version(5.1)
33]
35
36importlib ("stdole2.tlb");
37
43
47
48typedef
49[uuid(12782009-fe90-4877-9730-e5e183669b19)]
51{
72} WinHttpRequestOption;
73
74typedef
75[uuid(9d8a6df8-13de-4b1f-a330-67c719d62514)]
77{
81} WinHttpRequestAutoLogonPolicy;
82
83[
84 object,
85 uuid(016fe2ec-b2c8-45f8-b23b-39e53a75396b),
86 odl,
87 dual,
88 oleautomation,
89 nonextensible,
91]
93{
96 [in] HTTPREQUEST_PROXY_SETTING proxy_setting,
98 [in, optional] VARIANT bypass_list);
99
102 [in] BSTR username,
103 [in] BSTR password,
105
108 [in] BSTR method,
109 [in] BSTR url,
110 [in, optional] VARIANT async);
111
114 [in] BSTR header,
115 [in] BSTR value);
116
119 [in] BSTR header,
120 [out, retval] BSTR *value);
121
124 [out, retval] BSTR *headers);
125
129
132 [out, retval] LONG *status);
133
135 HRESULT StatusText(
136 [out, retval] BSTR *status);
137
139 HRESULT ResponseText(
140 [out, retval] BSTR *body);
141
143 HRESULT ResponseBody(
144 [out, retval] VARIANT *body);
147 HRESULT ResponseStream(
148 [out, retval] VARIANT *body);
149
151 HRESULT Option(
153 [out, retval] VARIANT *value);
154
155 [propput, id(DISPID_HTTPREQUEST_OPTION)]
156 HRESULT Option(
158 [in] VARIANT value);
159
161 HRESULT WaitForResponse(
163 [out, retval] VARIANT_BOOL *succeeded);
166 HRESULT Abort();
167
169 HRESULT SetTimeouts(
170 [in] LONG resolve_timeout,
172 [in] LONG send_timeout,
173 [in] LONG receive_timeout);
174
176 HRESULT SetClientCertificate(
177 [in] BSTR certificate);
178
180 HRESULT SetAutoLogonPolicy(
182}
183[
184 helpstring("WinHttpRequest Component version 5.1"),
186 progid("WinHttp.WinHttpRequest.5.1"),
187 uuid(2087c2f4-2cef-4953-a8ab-66779b670495)
188]
189coclass WinHttpRequest { interface IWinHttpRequest; }
190
191} /* WinHttp */
@ optional
Definition: SystemMenu.c:34
coclass MediaStreamFilter helpstring("Stream Class")
PFOR_CONTEXT fc
Definition: for.c:57
FT_Library library
Definition: cffdrivr.c:654
static const WCHAR proxy_server[]
Definition: connections.c:40
coclass PSFactoryBuffer pointer_default(unique)] interface ObjectRpcBaseTypes
Definition: dcom.idl:35
OLECHAR * BSTR
Definition: compat.h:2293
short VARIANT_BOOL
Definition: compat.h:2290
static const WCHAR version[]
Definition: asmname.c:66
static ULONG connect_timeout
Definition: internet.c:98
method
Definition: dragdrop.c:54
WDF_INTERRUPT_POLICY policy
Status
Definition: gdiplustypes.h:25
GLuint in
Definition: glext.h:9616
GLbitfield flags
Definition: glext.h:7161
GLuint id
Definition: glext.h:5910
#define progid(str)
Definition: httprequest.idl:25
#define threading(model)
Definition: httprequest.idl:24
#define DISPID_HTTPREQUEST_RESPONSETEXT
Definition: httprequestid.h:31
#define DISPID_HTTPREQUEST_GETALLRESPONSEHEADERS
Definition: httprequestid.h:26
#define DISPID_HTTPREQUEST_SETAUTOLOGONPOLICY
Definition: httprequestid.h:40
#define DISPID_HTTPREQUEST_STATUSTEXT
Definition: httprequestid.h:30
#define DISPID_HTTPREQUEST_SETTIMEOUTS
Definition: httprequestid.h:38
#define DISPID_HTTPREQUEST_STATUS
Definition: httprequestid.h:29
#define DISPID_HTTPREQUEST_SETCREDENTIALS
Definition: httprequestid.h:36
#define DISPID_HTTPREQUEST_OPEN
Definition: httprequestid.h:23
#define DISPID_HTTPREQUEST_WAITFORRESPONSE
Definition: httprequestid.h:37
#define DISPID_HTTPREQUEST_SETCLIENTCERTIFICATE
Definition: httprequestid.h:39
#define DISPID_HTTPREQUEST_RESPONSEBODY
Definition: httprequestid.h:32
#define DISPID_HTTPREQUEST_GETRESPONSEHEADER
Definition: httprequestid.h:25
#define DISPID_HTTPREQUEST_OPTION
Definition: httprequestid.h:28
#define DISPID_HTTPREQUEST_SETPROXY
Definition: httprequestid.h:35
#define DISPID_HTTPREQUEST_ABORT
Definition: httprequestid.h:34
#define DISPID_HTTPREQUEST_SEND
Definition: httprequestid.h:27
#define DISPID_HTTPREQUEST_RESPONSESTREAM
Definition: httprequestid.h:33
#define DISPID_HTTPREQUEST_SETREQUESTHEADER
Definition: httprequestid.h:24
HRESULT SetProxy([in] HTTPREQUEST_PROXY_SETTING proxy_setting, [in, optional] VARIANT proxy_server, [in, optional] VARIANT bypass_list)
HRESULT SetCredentials([in] BSTR username, [in] BSTR password, [in] HTTPREQUEST_SETCREDENTIALS_FLAGS flags)
HRESULT GetResponseHeader([in] BSTR header, [out, retval] BSTR *value)
HRESULT SetRequestHeader([in] BSTR header, [in] BSTR value)
HRESULT Open([in] BSTR method, [in] BSTR url, [in, optional] VARIANT async)
HRESULT GetAllResponseHeaders([out, retval] BSTR *headers)
HRESULT Send([in, optional] VARIANT body)
Definition: msctf.idl:550
static const WCHAR url[]
Definition: encode.c:1432
static WCHAR password[]
Definition: url.c:33
static WCHAR username[]
Definition: url.c:32
const HTTPREQUEST_PROXY_SETTING HTTPREQUEST_PROXYSETTING_DIRECT
Definition: httprequest.idl:41
LONG HTTPREQUEST_SETCREDENTIALS_FLAGS
Definition: httprequest.idl:44
LONG HTTPREQUEST_PROXY_SETTING
Definition: httprequest.idl:38
const HTTPREQUEST_PROXY_SETTING HTTPREQUEST_PROXYSETTING_PROXY
Definition: httprequest.idl:42
const HTTPREQUEST_SETCREDENTIALS_FLAGS HTTPREQUEST_SETCREDENTIALS_FOR_SERVER
Definition: httprequest.idl:45
WinHttpRequestOption
Definition: httprequest.idl:51
@ WinHttpRequestOption_EnableTracing
Definition: httprequest.idl:62
@ WinHttpRequestOption_UserAgentString
Definition: httprequest.idl:52
@ WinHttpRequestOption_EnableHttp1_1
Definition: httprequest.idl:69
@ WinHttpRequestOption_MaxResponseHeaderSize
Definition: httprequest.idl:67
@ WinHttpRequestOption_MaxAutomaticRedirects
Definition: httprequest.idl:66
@ WinHttpRequestOption_EnableCertificateRevocationCheck
Definition: httprequest.idl:70
@ WinHttpRequestOption_EnableRedirects
Definition: httprequest.idl:58
@ WinHttpRequestOption_EnableHttpsToHttpRedirects
Definition: httprequest.idl:64
@ WinHttpRequestOption_URLCodePage
Definition: httprequest.idl:54
@ WinHttpRequestOption_RevertImpersonationOverSsl
Definition: httprequest.idl:63
@ WinHttpRequestOption_SelectCertificate
Definition: httprequest.idl:57
@ WinHttpRequestOption_SecureProtocols
Definition: httprequest.idl:61
@ WinHttpRequestOption_UrlEscapeDisable
Definition: httprequest.idl:59
@ WinHttpRequestOption_URL
Definition: httprequest.idl:53
@ WinHttpRequestOption_MaxResponseDrainSize
Definition: httprequest.idl:68
@ WinHttpRequestOption_EscapePercentInURL
Definition: httprequest.idl:55
@ WinHttpRequestOption_UrlEscapeDisableQuery
Definition: httprequest.idl:60
@ WinHttpRequestOption_SslErrorIgnoreFlags
Definition: httprequest.idl:56
@ WinHttpRequestOption_EnablePassportAuthentication
Definition: httprequest.idl:65
@ WinHttpRequestOption_RejectUserpwd
Definition: httprequest.idl:71
WinHttpRequestAutoLogonPolicy
Definition: httprequest.idl:77
@ AutoLogonPolicy_Always
Definition: httprequest.idl:78
@ AutoLogonPolicy_Never
Definition: httprequest.idl:80
@ AutoLogonPolicy_OnlyIfBypassProxy
Definition: httprequest.idl:79
const HTTPREQUEST_PROXY_SETTING HTTPREQUEST_PROXYSETTING_PRECONFIG
Definition: httprequest.idl:40
const HTTPREQUEST_PROXY_SETTING HTTPREQUEST_PROXYSETTING_DEFAULT
Definition: httprequest.idl:39
const HTTPREQUEST_SETCREDENTIALS_FLAGS HTTPREQUEST_SETCREDENTIALS_FOR_PROXY
Definition: httprequest.idl:46
long LONG
Definition: pedump.c:60
static FILE * out
Definition: regtests2xml.c:44
static const void * body(MD5_CTX *ctx, const void *data, unsigned long size)
Definition: md5.c:100
vector< Header * > headers
Definition: sdkparse.cpp:39
Definition: getopt.h:109
Definition: ps.c:97
Definition: dhcpd.h:245
Definition: pdh_main.c:94