C#
文章平均质量分 75
nsky
喜欢下雪。
展开
-
WebRequest post读取源码
static string GetHTML() { string url = "http://flights.ctrip.com/booking/bjs-sha----adu-1/"; string param = "dayoffset=3&ddate1=2013-01-18&dcityname1=%u5317%u4eac&原创 2013-01-16 11:35:18 · 526 阅读 · 0 评论 -
使用TcpClient可避免HttpWebRequest的常见错误
有时使用HttpWebRequest对象会出现错误,总结有三种: 1、System.Net.WebException: 服务器提交了协议冲突. Section=ResponseStatusLine 2、System.Net.WebException: 基础连接已经关闭: 连接被意外关闭。 3、System.Net.ProtocolViolationException: 无法发转载 2013-01-16 11:40:37 · 526 阅读 · 0 评论 -
C# 发HTTP请求
记录一下,调试使用 protected void btnSend_Click(object sender, EventArgs e) { string url = "http://localhost:3547/waplocation.aspx"; string mobileNo = this.txtMobil转载 2013-01-17 11:42:36 · 634 阅读 · 0 评论