摘要:
wininet.dll中包含很多win32下和网络有关的函数,包括internet,ftp等,下面演示一个IE下不过期的cookie。 比如csdn的登陆信息可以保存2个星期,你在登陆后把系统时间改为2周后,登陆信息就失效了,使用InternetSetCookie可以自己设置过期日期。 首先在IE中登陆,登陆时选择信息保存2周,然后运行如下代码,运行之后你可以把日期调整到2010年看效果:view... 阅读全文
posted @ 2009-08-19 17:23
米高佐敦
阅读(480)
评论(0)
推荐(0)
摘要:
using System; using System.IO; using System.Text; using System.Text.RegularExpressions; using Microsoft.Win32; public class Class1 { static void Main(string[] args) { System.Console.WriteLin... 阅读全文
posted @ 2009-08-19 17:22
米高佐敦
阅读(614)
评论(0)
推荐(0)
摘要:
using System;using System.Net;using System.IO;using System.Text; using System.Threading;class HttpWebRequestBeginGetRequest{ public static ManualResetEvent allDone = new ManualResetEvent(false); publi... 阅读全文
posted @ 2009-08-19 11:03
米高佐敦
阅读(2265)
评论(1)
推荐(0)
浙公网安备 33010602011771号