Méthode | Description | |
---|---|---|
ReadHttpResponse ( |
Loads a web response into a string.
|
|
UnixTimeStampToDateTime ( double unixTimeStamp ) : System.DateTime |
Converts a Unix timestamp to a DateTime instance.
|
Méthode | Description | |
---|---|---|
NodeValue ( |
Returns the value of a child node.
|
|
NodeValueDouble ( |
Returns the double value of a child node or -1 if none.
|
|
NodeValueInt ( |
Returns the integer value of a child node or -1 if none.
|
|
ParametersToUrl ( string baseUrl, |
Changes an array (hash table) of parameters to a url.
|
|
PostParameters ( |
Returns the default HTTP post parameters array.
|
|
UploadFile ( Stream fileStream, string url, string fileName, string fileFormName, string contentType, |
Uploads a file by HTTP POST. Code adapted from this project: http://www.codeproject.com/KB/cs/uploadfileex.aspx
|
|
WebRequestBuild ( string url ) : |
Returns a web request.
|
protected static NodeValue ( |
||
node | ||
key | string | |
Résultat | string |
protected static NodeValueDouble ( |
||
node | ||
key | string | |
Résultat | double |
protected static NodeValueInt ( |
||
node | ||
key | string | |
Résultat | int |
protected static ParametersToUrl ( string baseUrl, |
||
baseUrl | string | |
parameters | ||
Résultat | string |
protected static PostParameters ( |
||
options | ||
method | string | |
id | string | |
Résultat |
public static ReadHttpResponse ( |
||
response | ||
Résultat | string |
public static UnixTimeStampToDateTime ( double unixTimeStamp ) : System.DateTime | ||
unixTimeStamp | double | |
Résultat | System.DateTime |
protected static UploadFile ( Stream fileStream, string url, string fileName, string fileFormName, string contentType, |
||
fileStream | Stream | |
url | string | URL of the request. |
fileName | string | Name of the file. |
fileFormName | string | Form file name. |
contentType | string | File content type. |
cookies | Cookies for request. | |
Résultat | string |
protected static WebRequestBuild ( string url ) : |
||
url | string | |
Résultat |