类库说明文档
![]() |
HttpClient Properties |
The HttpClient type exposes the following members.

Name | Description | |
---|---|---|
![]() |
Accept |
获取或设置期望的资源类型
|
![]() |
Context |
获取或设置Cookie及Referer
|
![]() |
DefaultEncoding |
GetString()如果不能从HTTP头或Meta标签中获取编码信息,则使用此编码来获取字符串
|
![]() |
DefaultLanguage |
期望的回应的语言
|
![]() |
EndPoint |
获取或设置获取内容的结束点,用于断点续传,多下程下载等.
如果为0,表示获取资源从StartPoint开始的剩余内容
|
![]() |
Files |
要上传的文件.如果不为空则自动转为Post请求
|
![]() |
KeepContext |
是否自动在不同的请求间保留Cookie, Referer
|
![]() |
PostingData |
要发送的Form表单信息
|
![]() |
ResponseHeaders |
用于在获取回应后,暂时记录回应的HTTP头
|
![]() |
StartPoint |
获取或设置获取内容的起始点,用于断点续传,多线程下载等
|
![]() |
Url |
获取或设置请求资源的地址
|
![]() |
UserAgent |
获取或设置请求中的Http头User-Agent的值
|
![]() |
Verb |
指示发出Get请求还是Post请求
|
