C# Class TrakHound.Tools.Web.HTTP

ファイルを表示 Open project: TrakHound/TrakHound-Community Class Usage Examples

Public Methods

Method Description
GET ( string url, bool returnBytes ) : ResponseInfo
GET ( HTTPInfo info ) : string
GET ( string url ) : string
GET ( string url, HeaderData headers ) : string
GET ( string url, HeaderData headers, string userAgent ) : string
GET ( string url, HeaderData headers, string userAgent, NetworkCredential credential ) : string
GetPostValue ( string body, string parameterName ) : string
POST ( HTTPInfo info ) : string
POST ( string url, NameValueCollection postValues ) : string
POST ( string url, PostContentData postContentData ) : string
POST ( string url, PostContentData postContentData, HeaderData headers ) : string
POST ( string url, PostContentData postContentData, HeaderData headers, string userAgent ) : string
POST ( string url, PostContentData postContentData, HeaderData headers, string userAgent, NetworkCredential credential ) : string
PUT ( string url ) : string
PUT ( string url, NameValueCollection postValues ) : string
PUT ( string url, PostContentData postContentData, HeaderData headers ) : string
PUT ( string url, PostContentData postContentData, HeaderData headers, string userAgent ) : string
PUT ( string url, PostContentData postContentData, HeaderData headers, string userAgent, NetworkCredential credential ) : string

Private Methods

Method Description
GetBytes ( string s ) : byte[]
GetFileContents ( FileContentData fileDatas, string boundary ) : byte[]

Get bytes for HTTP file Content

SendData ( bool returnBytes, string method, string url, PostContentData postDatas = null, FileContentData fileDatas = null, HeaderData headers = null, string userAgent = null, NetworkCredential credential = null, ProxySettings proxySettings = null, int timeout = TIMEOUT, int maxAttempts = CONNECTION_ATTEMPTS, bool getResponse = true ) : ResponseInfo
SendData ( string method, string url, PostContentData postDatas = null, FileContentData fileDatas = null, HeaderData headers = null, string userAgent = null, NetworkCredential credential = null, ProxySettings proxySettings = null, int timeout = TIMEOUT, int maxAttempts = CONNECTION_ATTEMPTS, bool getResponse = true ) : string

Method Details

GET() public static method

public static GET ( string url, bool returnBytes ) : ResponseInfo
url string
returnBytes bool
return ResponseInfo

GET() public static method

public static GET ( HTTPInfo info ) : string
info HTTPInfo
return string

GET() public static method

public static GET ( string url ) : string
url string
return string

GET() public static method

public static GET ( string url, HeaderData headers ) : string
url string
headers HeaderData
return string

GET() public static method

public static GET ( string url, HeaderData headers, string userAgent ) : string
url string
headers HeaderData
userAgent string
return string

GET() public static method

public static GET ( string url, HeaderData headers, string userAgent, NetworkCredential credential ) : string
url string
headers HeaderData
userAgent string
credential System.Net.NetworkCredential
return string

GetPostValue() public static method

public static GetPostValue ( string body, string parameterName ) : string
body string
parameterName string
return string

POST() public static method

public static POST ( HTTPInfo info ) : string
info HTTPInfo
return string

POST() public static method

public static POST ( string url, NameValueCollection postValues ) : string
url string
postValues System.Collections.Specialized.NameValueCollection
return string

POST() public static method

public static POST ( string url, PostContentData postContentData ) : string
url string
postContentData PostContentData
return string

POST() public static method

public static POST ( string url, PostContentData postContentData, HeaderData headers ) : string
url string
postContentData PostContentData
headers HeaderData
return string

POST() public static method

public static POST ( string url, PostContentData postContentData, HeaderData headers, string userAgent ) : string
url string
postContentData PostContentData
headers HeaderData
userAgent string
return string

POST() public static method

public static POST ( string url, PostContentData postContentData, HeaderData headers, string userAgent, NetworkCredential credential ) : string
url string
postContentData PostContentData
headers HeaderData
userAgent string
credential System.Net.NetworkCredential
return string

PUT() public static method

public static PUT ( string url ) : string
url string
return string

PUT() public static method

public static PUT ( string url, NameValueCollection postValues ) : string
url string
postValues System.Collections.Specialized.NameValueCollection
return string

PUT() public static method

public static PUT ( string url, PostContentData postContentData, HeaderData headers ) : string
url string
postContentData PostContentData
headers HeaderData
return string

PUT() public static method

public static PUT ( string url, PostContentData postContentData, HeaderData headers, string userAgent ) : string
url string
postContentData PostContentData
headers HeaderData
userAgent string
return string

PUT() public static method

public static PUT ( string url, PostContentData postContentData, HeaderData headers, string userAgent, NetworkCredential credential ) : string
url string
postContentData PostContentData
headers HeaderData
userAgent string
credential System.Net.NetworkCredential
return string