Http utily class
More...
| NoteFly.HttpUtil.HttpUtil |
( |
string |
url, |
|
|
System.Net.Cache.RequestCacheLevel |
cachesettings, |
|
|
string |
postdata |
|
) |
| |
- Parameters
-
| url | The url of the request to make |
| cachesettings | The cache settings (important note: this is always NoCacheNoStore under Mono) |
| postdata | POST data for a POST Http request. |
- Returns
| NoteFly.HttpUtil.HttpUtil |
( |
string |
url, |
|
|
System.Net.Cache.RequestCacheLevel |
cachesettings |
|
) |
| |
| HttpWebRequest NoteFly.HttpUtil.CreateHttpWebRequest |
( |
string |
url, |
|
|
System.Net.Cache.RequestCacheLevel |
cachesettings |
|
) |
| |
|
private |
- Parameters
-
| url | Http request url. |
| cachesettings | Http cache settings |
- Returns
- A new httpwebrequest object.
| void NoteFly.HttpUtil.httpthread_DoWork |
( |
object |
sender, |
|
|
DoWorkEventArgs |
e |
|
) |
| |
|
private |
- Parameters
-
| sender | The sender object |
| e | DoWorkEvent arguments |
| static bool NoteFly.HttpUtil.InternetGetConnectedState |
( |
out int |
description, |
|
|
int |
ReservedValue |
|
) |
| |
|
private |
| bool NoteFly.HttpUtil.IsNetworkConnected |
( |
| ) |
|
|
private |
Decreated, used for send to twitter/facebook
- Returns
- true if there is a connection, otherwise return false
| bool NoteFly.HttpUtil.Start |
( |
RunWorkerCompletedEventHandler |
workcompleethandler | ) |
|
- Parameters
-
| workcompleethandler | The RunWorkerCompletedEventHandler |
- Returns
- True if http background worker succesfully started
| void NoteFly.HttpUtil.Stop |
( |
| ) |
|
| readonly System.Net.Cache.RequestCacheLevel NoteFly.HttpUtil.cachesettings |
|
private |
| BackgroundWorker NoteFly.HttpUtil.httpthread |
|
private |
| readonly string NoteFly.HttpUtil.postdata |
|
private |
| readonly string NoteFly.HttpUtil.url |
|
private |
|