Description: 使用httpwebrequest轻松实现站外提交(可用于自动登陆,自动网上投票等)-Easy to use HttpWebRequest Station submitted (can be used for automatic landing, automatic online voting, etc.) Platform: |
Size: 9216 |
Author:jun |
Hits:
Description: CookieManager 提供 CookieHandler 的具体实现,它将 cookie 的存储区与围绕接受和拒绝 cookie 的策略分离开来。使用管理存储的 CookieStore 以及做出 cookie 接受/拒绝决策的 CookiePolicy 对象来初始化 CookieManager。 -/********************************************************************************//**
A typical usage of this class would look something like this:
CookieManager cookieManager = new CookieManager()
// Set a cookie value
cookieManager.CookieValues["FavoriteCookie"] = "Chocolate Chip"
HttpWebRequest webRequest = (HttpWebRequest)WebRequest.Create(url)
// Publish the cookies to the request before asking for the response
cookieManager.PublishCookies(webRequest)
HttpWebResponse webResponse = (HttpWebResponse)webRequest.GetResponse()
// Store any cookies returned from the response
cookieManager.StoreCookies(webResponse)
// Get the value of a cookie
string session = cookieManager.CookieValues["SESSIONID"]
webRequest = (HttpWebRequest)WebRequest.Create(url2)
cookieManager.PublishCookies(webRequest)
webResponse = (HttpWebResponse)webRequest.GetResponse()
************************************************************************************/ Platform: |
Size: 14336 |
Author: |
Hits:
Description: 实现用多线程下载网络资源,并对下载的文件进行合并。使用HttpWebRequest/WebResponse作为主要方法。-Implementation of network resources using multi-threaded downloads, and download the file to merge. Using the HttpWebRequest/WebResponse as the main method. Platform: |
Size: 160768 |
Author:gcloo |
Hits: