关于HttpWebRequest的问题(都大半天了,急死人了)
这个地址在IE里访问正常,用Java的程序获取也正常,用下载工具下载也正常,但用C#的HttpWebRequest来取就报错。半天了。快来帮忙
http://patft.uspto.gov/netacgi/nph-Parser?Sect1=PTO2§2=HITOFF&u=/netahtml/search-adv.htm&r=1&p=1&f=G&l=50&d=ptxt&S1=6,938,019.WKU.&OS=pn/6,938,019&RS=PN/6,938,019
----------程序如下---------------------
HttpWebRequest rq = (HttpWebRequest)WebRequest.Create(strUrl);
HttpWebResponse rp = null;
try
{
rp = (HttpWebResponse)rq.GetResponse();
}
catch(Exception ex)
{
MessageBox.Show("错误:" + ex.ToString());
}