作者tomex (tomex_ou)
看板C_Sharp
标题Re: 403 Forbidden?
时间Sun Mar 27 21:55:30 2005
※ 引述《yllan (蓝永伦)》之铭言:
: 当我用 .net 想要抓网址的时候,我发觉有些抓不下来!
: 例如:
: http://www.wretch.cc/blog/blueapple
: 我的程式码是这样的
: WebClient wb = new WebClient();
: byte[] context = wb.DownloadData("http://www.wretch.cc/blog/blueapple");
: 结果就烂了... 为什麽啊?用浏览器看明明好好的啊 Q_Q 哪有 Forbidden...
Try to use full URL name, including page name.
ex.
http://your.url/dir1/index.htm
The default page is affected by the setting of hosting web server.
Maybe IE knows how to request, but your custom thread is not!!
--
贯彻分享精神
我为人人,人人为我
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.119.183.211