C# Class Core.WebHelper

Mostra file Open project: woodhojuli/Twitstrip

Public Methods

Method 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

Method Description
CopyStreamToByteArray ( System.Stream Stream ) : byte[]

For copying a non-seekable stream to a byte array

Method Details

GetBytesFromURL() public static method

public static GetBytesFromURL ( string sURL ) : byte[]
sURL string
return byte[]

GetWebResponse() public static method

public static GetWebResponse ( String sURL, String sMethod ) : System.Stream
sURL String
sMethod String
return System.Stream

GetWebResponse() public static method

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

UrlDecode() public static method

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
return string