資源簡介
模擬請求,基于HttpWebRequest封裝好的一個類,自動記下和發送Cookie,你只管調用方法就行了,很實用
代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.Text;
using?System.Net;
using?System.IO;
using?System.Drawing;
using?System.Text.Regularexpressions;
namespace?QQLogin
{
????public?class?HttpHelper
????{
????????private?CookieContainer?cc;
????????private?string?responseUrl?=?string.Empty;
????????private?string?setCookie?=?string.Empty;
????????public?CookieContainer?CC
????????{
????????????get
????????????{
????????????????return?cc;
????????????}
????????????set
????????????{
????????????????this.cc?=?value;
????????????}
????????}
????????public?string?ResponseUrl
????????{
????????????get
????????????{
????????????????return?responseUrl;
????????????}
????????????set
????????????{
????????????????this.responseUrl?=?value;
????????????
- 上一篇:adsl撥號程序(C#)
- 下一篇:網絡信息智能采集系統
評論
共有 條評論