摘要: using System;using System.Collections.Generic;using System.IO;using System.Text;using System.Net;using System.Web;namespace Deerchao.Utility{ public class HttpClient { #region fields private bool keep... 阅读全文
posted @ 2010-03-24 19:15 fmxyw 阅读(781) 评论(0) 推荐(0) 编辑
摘要: HttpWebRequest 是 .net 基类库中的一个类,在命名空间 System.Net 下面,用来使用户通过 HTTP 协议和服务器交互。HttpWebRequest 对 HTTP 协议进行了完整的封装,对 HTTP 协议中的 Header, Content, Cookie 都做了属性和方法的支持,很容易就能编写出一个模拟浏览器自动登录的程序。程序使用 HTTP 协议和服务器交互主要是进行... 阅读全文
posted @ 2010-03-24 19:14 fmxyw 阅读(302) 评论(0) 推荐(0) 编辑
摘要: Ajax.Request(url,{method:method,parameters:para,postBody:xmlString,asynchronous:true,setRequestHeader:Object,onComplete:completeFun,onError:errorFun})发送异步请求。(此方法是为兼容 prototype.js 而写,调用风格与 prototype 一致... 阅读全文
posted @ 2010-03-24 09:39 fmxyw 阅读(309) 评论(0) 推荐(0) 编辑