C# Class MBUtilities.URL

Datei anzeigen Open project: MatthewCox/MoronBot

Public Methods

Method Description
FetchURL ( string url ) : WebPage

Fetches the page a URL refers to, and returns a WebPage struct.

Pastebin ( string text, string title = "", string expire = "10M", string format = "text", string privacy = "1" ) : string
ReceiveFromServer ( Stream responseStream ) : string
SendToServer ( string url ) : Stream
SendToServer ( string url, string text ) : Stream
Shorten ( string url ) : string
StripHTML ( string text ) : string

Private Methods

Method Description
CheckValidationResult ( object sender, System certificate, System chain, System sslPolicyErrors ) : bool
GooglKey ( ) : string
ShortenGoogl ( string url ) : string

Method Details

FetchURL() public static method

Fetches the page a URL refers to, and returns a WebPage struct.
public static FetchURL ( string url ) : WebPage
url string The URL to fetch.
return WebPage

Pastebin() public static method

public static Pastebin ( string text, string title = "", string expire = "10M", string format = "text", string privacy = "1" ) : string
text string
title string
expire string
format string
privacy string
return string

ReceiveFromServer() public static method

public static ReceiveFromServer ( Stream responseStream ) : string
responseStream Stream
return string

SendToServer() public static method

public static SendToServer ( string url ) : Stream
url string
return Stream

SendToServer() public static method

public static SendToServer ( string url, string text ) : Stream
url string
text string
return Stream

Shorten() public static method

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

StripHTML() public static method

public static StripHTML ( string text ) : string
text string
return string