Re: 403 Forbidden?

看板C_Sharp (C#)作者 (tomex_ou)時間20年前 (2005/03/27 21:51), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/2 (看更多)
※ 引述《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
文章代碼(AID): #12HhfY5V (C_Sharp)
討論串 (同標題文章)
本文引述了以下文章的的內容:
20年前, 03/27
完整討論串 (本文為第 2 之 2 篇):
20年前, 03/27
文章代碼(AID): #12HhfY5V (C_Sharp)