메소드 | 설명 | |
---|---|---|
ExecuteRequest ( string url, string contentType, string method, string body, Header optionalHeaders, bool autoRedirect ) : |
Performs a HTTP request
|
|
ExtractValue ( string data, string from, string to ) : string |
Extract text value between the two provided strings
|
|
ParseCookie ( string cookie ) : string | ||
ReadBody ( |
Read received body
|
|
ReadBody ( |
Read received body
|
|
Save2disk ( string filename, byte data ) : void |
public static ExecuteRequest ( string url, string contentType, string method, string body, Header optionalHeaders, bool autoRedirect ) : |
||
url | string | Target URL |
contentType | string | Content-Type Header |
method | string | HTTP Method (POST/GET) |
body | string | string data to send when method is POST |
optionalHeaders | Header | Array of optional headers needed by the request |
autoRedirect | bool | Allows automatically performig autoredirect when the server invokes it |
리턴 |
public static ExtractValue ( string data, string from, string to ) : string | ||
data | string | source string |
from | string | Start string chunk |
to | string | End string chunk |
리턴 | string |
public static ParseCookie ( string cookie ) : string | ||
cookie | string | |
리턴 | string |
public static ReadBody ( |
||
response | Http response received from the server | |
리턴 | byte[] |
public static ReadBody ( |
||
response | Http response received from the server | |
encoding | System | Content-Encoding used to decode the buffer |
리턴 | string |
public static Save2disk ( string filename, byte data ) : void | ||
filename | string | |
data | byte | |
리턴 | void |