C# Class Common.Helper.NetworkHelper

Show file Open project: ParryQiu/Generate-Cnblogs-Articles-To-Markdown

Public Methods

Method Description
GetHtmlFromGet ( string urlString, Encoding encoding ) : string

通过GET方式获取页面的方法

SaveBinaryFile ( WebResponse response, string fileName ) : bool
SavePhotoFromUrl ( string fileName, string url ) : bool

Method Details

GetHtmlFromGet() public static method

通过GET方式获取页面的方法
public static GetHtmlFromGet ( string urlString, Encoding encoding ) : string
urlString string 请求的URL
encoding System.Text.Encoding 页面编码
return string

SaveBinaryFile() public static method

public static SaveBinaryFile ( WebResponse response, string fileName ) : bool
response System.Net.WebResponse
fileName string
return bool

SavePhotoFromUrl() public static method

public static SavePhotoFromUrl ( string fileName, string url ) : bool
fileName string
url string
return bool