| RequestUtilityHttpResponseGetAsync 方法 |
Senparc.Weixin SDK 官方教程《微信开发深度解析》已出版,支持中国开源事业,请【购买正版】!
《微信公众号+小程序》视频课程已经上线,【点击这里】学习!
NeuChar(纽插)已经上线,为开发者提供一站式跨平台管理枢纽,并可将应用入驻到 NeuChar 应用商店!新功能正在不断增加中,快来使用吧! https://www.neuchar.com
在线动态微信接口 Swagger WebApi 文档: https://weixin.senparc.com:8039
获取HttpWebResponse或HttpResponseMessage对象,本方法通常用于测试)
命名空间:
Senparc.CO2NET.HttpUtility
程序集:
Senparc.CO2NET (在 Senparc.CO2NET.dll 中) 版本:1.4.300-preview.3.21201.4.100+9de96adf02982fcbddc436d3680e19a719e9d8b2
语法 public static Task<HttpWebResponse> HttpResponseGetAsync(
string url,
CookieContainer cookieContainer = null,
Encoding encoding = null,
X509Certificate2 cer = null,
string refererUrl = null,
bool useAjax = false,
int timeOut = 10000
)
Public Shared Function HttpResponseGetAsync (
url As String,
Optional cookieContainer As CookieContainer = Nothing,
Optional encoding As Encoding = Nothing,
Optional cer As X509Certificate2 = Nothing,
Optional refererUrl As String = Nothing,
Optional useAjax As Boolean = false,
Optional timeOut As Integer = 10000
) As Task(Of HttpWebResponse)
参数
- url
- 类型:SystemString
- cookieContainer (Optional)
- 类型:System.NetCookieContainer
- encoding (Optional)
- 类型:System.TextEncoding
- cer (Optional)
- 类型:System.Security.Cryptography.X509CertificatesX509Certificate2
- refererUrl (Optional)
- 类型:SystemString
- useAjax (Optional)
- 类型:SystemBoolean
- timeOut (Optional)
- 类型:SystemInt32
返回值
类型:
TaskHttpWebResponse参见