HttpClient Properties

DCSoft.DBUtilityGeneric

HttpClient Properties

The HttpClient type exposes the following members.

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