Re: 403 Forbidden?
※ 引述《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
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):
C_Sharp 近期熱門文章
PTT數位生活區 即時熱門文章