System::Web::Services::Protocols::HttpWebClientProtocol class
HttpWebClientProtocol class
此基类用于所有使用 HTTP 的 XML Web 服务客户端代理。此类的对象只能使用 System::MakeObject() 函数分配。切勿在栈上或使用 operator new 创建此类型的实例,因为这会导致运行时错误和/或断言故障。始终将此类包装到 System::SmartPtr 指针中,并使用该指针将其作为参数传递给函数。
class HttpWebClientProtocol : public System::Web::Services::Protocols::WebClientProtocol
方法
| 方法 | 描述 |
|---|---|
| virtual CheckForCookies(System::SharedPtr<Net::HttpWebResponse>) | 将指定请求中的 cookie 附加到内部 cookie 容器中。 |
| get_AllowAutoRedirect() | 获取一个指示客户端是否遵循服务器重定向的值。 |
| get_ClientCertificates() | 返回客户端证书的集合。 |
| get_CookieContainer() | 获取用于存储 cookie 的容器。 |
| get_EnableDecompression() | 获取一个指示是否已启用解压缩的值。 |
| get_Proxy() | 获取代理信息。 |
| get_UnsafeAuthenticatedConnectionSharing() | 获取一个指示当客户端使用 NTLM 身份验证时是否启用连接共享的值。 |
| get_UserAgent() | 获取 ‘User-Agent’ 头的值。 |
| set_AllowAutoRedirect(bool) | 设置一个指示客户端是否遵循服务器重定向的值。 |
| set_CookieContainer(System::SharedPtr<System::Net::CookieContainer>) | 设置用于存储 cookie 的容器。 |
| set_EnableDecompression(bool) | 设置一个指示是否已启用解压缩的值。 |
| set_Proxy(System::SharedPtr<Net::IWebProxy>) | 设置代理信息。 |
| set_UnsafeAuthenticatedConnectionSharing(bool) | 设置一个指示当客户端使用 NTLM 身份验证时是否启用连接共享的值。 |
| set_UserAgent(String) | 设置 ‘User-Agent’ 头部的值。 |
| UnregisterMapping(System::SharedPtr<Object>) |
另见
- Class WebClientProtocol
- Namespace System::Web::Services::Protocols
- Library Aspose.Font for C++