09 2009 档案

摘要:我在Google网站上找到如下的说明,可能就是这个原因了吧: Does this service work through HTTP proxies? Sometimes. The service should work through HTTP proxies, but in practice many HTTP proxies have trouble correctly forwardin... 阅读全文
posted @ 2009-09-29 13:24 易胆大 阅读(1713) 评论(0) 推荐(0)
摘要:今天在post数据时候得到3个cookie,本来是成功post了,但是访问下面的页面总是说没有登录,后来才发现原来有一个cooke的domain不一样,改成一样的就ok了。 阅读全文
posted @ 2009-09-13 10:24 易胆大 阅读(239) 评论(0) 推荐(0)
摘要:Hi, I'm trying to login to the www.vodafone.ie website using HttpWebRequest. It works fine with IE/Firefox and the .NET Web Control too, just not with my code. I think it's a redirect 302 problem. I'm... 阅读全文
posted @ 2009-09-13 09:13 易胆大 阅读(1066) 评论(0) 推荐(0)
摘要:从个人经验来看,目前的 httpwebrequest 不是一个很成熟的类。 最关键的问题是它在处理 Cookies 上有些混乱,而 Cookies 是你访问那些需要认证网页的关键。 总结一下 Httpwebrequest 编程中主要的问题: Cookies 问题(重中之中); 浏览器版本问题; Http 头的问题,其中需要注意 post 的 content-type 和 Http 头中是否被加入... 阅读全文
posted @ 2009-09-13 09:12 易胆大 阅读(467) 评论(0) 推荐(0)
摘要:.net(客户端)调用php(服务端)出现417错误 问题描述: 服务端环境: linux + apache(lighttpd) + php5 客户端环境: windowsxp + iis + .net 调用时出现如下错误: System.Net.WebException: 远程服务器返回错误: (417) Expectation Failed。 在 System.Net.HttpWebRequ... 阅读全文
posted @ 2009-09-05 13:58 易胆大 阅读(4027) 评论(4) 推荐(0)
摘要:这样encode一下含有中文的url就可以了  protected string UrlEncode(string url) { byte[] bs = Encoding.GetEncoding("GB2312").GetBytes(url); StringBuilder sb = new StringBuilder(); for (int i = 0; i < bs.Length; i++... 阅读全文
posted @ 2009-09-04 16:44 易胆大 阅读(612) 评论(0) 推荐(0)