C# Class Core.WebHelper

Afficher le fichier Open project: woodhojuli/Twitstrip

Méthodes publiques

Méthode Description
GetBytesFromURL ( string sURL ) : byte[]
GetWebResponse ( String sURL, String sMethod ) : System.Stream
GetWebResponse ( String sURL, String sMethod, string sUserName, string sPassword ) : System.Stream
UrlDecode ( string text ) : string

UrlDecodes a string without requiring System.Web

This is to avoid including system.web which means it can use the client only version of the framework, giving a potentially smaller framework download

Private Methods

Méthode Description
CopyStreamToByteArray ( System.Stream Stream ) : byte[]

For copying a non-seekable stream to a byte array

Method Details

GetBytesFromURL() public static méthode

public static GetBytesFromURL ( string sURL ) : byte[]
sURL string
Résultat byte[]

GetWebResponse() public static méthode

public static GetWebResponse ( String sURL, String sMethod ) : System.Stream
sURL String
sMethod String
Résultat System.Stream

GetWebResponse() public static méthode

public static GetWebResponse ( String sURL, String sMethod, string sUserName, string sPassword ) : System.Stream
sURL String
sMethod String
sUserName string
sPassword string
Résultat System.Stream

UrlDecode() public static méthode

UrlDecodes a string without requiring System.Web
This is to avoid including system.web which means it can use the client only version of the framework, giving a potentially smaller framework download
public static UrlDecode ( string text ) : string
text string
Résultat string