C# Class MPHelper.InternalUtilities.RequestHelper

Mostra file Open project: 010227leo/MPHelper

Public Methods

Method Description
Get ( string url, CookieContainer cookie, string host = "mp.weixin.qq.com", Encoding encoding = null ) : string
GetDonwloadFileBytes ( string url, CookieContainer cookie ) : byte[]
Post ( string url, string postData, CookieContainer cookie, Encoding encoding = null ) : string

Method Details

Get() public static method

public static Get ( string url, CookieContainer cookie, string host = "mp.weixin.qq.com", Encoding encoding = null ) : string
url string
cookie System.Net.CookieContainer
host string
encoding System.Text.Encoding
return string

GetDonwloadFileBytes() public static method

public static GetDonwloadFileBytes ( string url, CookieContainer cookie ) : byte[]
url string
cookie System.Net.CookieContainer
return byte[]

Post() public static method

public static Post ( string url, string postData, CookieContainer cookie, Encoding encoding = null ) : string
url string
postData string
cookie System.Net.CookieContainer
encoding System.Text.Encoding
return string