04 2008 档案

摘要:通过程序代码去模拟请求和提交网页表单数据,这里我使用的是一个登录方法。代码如下:HttpWebRequestrequest=(HttpWebRequest)WebRequest.Create(@http://www.tempuri.com/checkLogin);stringparms=string.Format("txtUser={0}&txtPass={1}&submit=",... 阅读全文
posted @ 2008-04-25 10:28 Allen Zhang 阅读(2551) 评论(3) 推荐(0)
摘要:Delphi动态链接库中函数定义为:functionEncrypt(constOrignStr,Key:PChar;NewStr,ErrStr:PChar):Boolean;stdcall;这里省去上千字的尝试失败过程,只有下面的方法是通过的[DllImport("Encrypt.dll",CharSet=CharSet.Ansi,CallingConvention=CallingConventi... 阅读全文
posted @ 2008-04-24 09:04 Allen Zhang 阅读(1094) 评论(4) 推荐(0)