UWInfo Blog
發表新文章
[Join] | [忘記密碼] | [Login]
搜尋

搜尋意見
文章分類-Jerry
[所有文章分類]
  • ASP.NET (1)
  • ASP.NET2.0 (0)
  • ASP.NET4.0 (0)
  • JavaScript (0)
  • jQuery (0)
  • FireFox (0)
  • UW系統設定 (0)
  • SQL (1)
  • SQL 2008 (0)
  • mirror (0)
  • SVN (0)
  • IE (0)
  • IIS (0)
  • IIS6 (0)
  • 閒聊 (0)
  • W3C (0)
  • 作業系統 (1)
  • C# (0)
  • CSS (1)
  • FileServer (1)
  • HTML 5 (0)
  • CKEditor (0)
  • UW.dll (0)
  • Visual Studio (0)
  • Browser (0)
  • SEO (0)
  • Google Apps (0)
  • 網站輔助系統 (2)
  • DNS (0)
  • SMTP (0)
  • 網管 (0)
  • 社群API (0)
  • SSL (0)
  • App_Inventor (0)
  • URLRewrite (0)
  • 開發工具 (0)
  • JSON (0)
  • Excel2007 (0)
  • 試題 (0)
  • LINQ (0)
  • bootstrap (0)
  • Vue (0)
  • IIS7 (0)
  • foodpanda (0)
  • 編碼 (0)
  • 資安 (0)
  • Sourcetree (0)
  • MAUI (0)
  • CMD (0)
  • my sql (0)
所有文章分類
[Jerry的分類]
  • ASP.NET (48)
  • ASP.NET2.0 (15)
  • ASP.NET4.0 (34)
  • JavaScript (49)
  • jQuery (26)
  • FireFox (4)
  • UW系統設定 (3)
  • SQL (39)
  • SQL 2008 (25)
  • mirror (4)
  • SVN (4)
  • IE (9)
  • IIS (20)
  • IIS6 (1)
  • 閒聊 (7)
  • W3C (6)
  • 作業系統 (9)
  • C# (23)
  • CSS (12)
  • FileServer (1)
  • HTML 5 (11)
  • CKEditor (3)
  • UW.dll (13)
  • Visual Studio (16)
  • Browser (8)
  • SEO (1)
  • Google Apps (3)
  • 網站輔助系統 (4)
  • DNS (5)
  • SMTP (4)
  • 網管 (11)
  • 社群API (3)
  • SSL (4)
  • App_Inventor (1)
  • URLRewrite (2)
  • 開發工具 (6)
  • JSON (1)
  • Excel2007 (1)
  • 試題 (3)
  • LINQ (1)
  • bootstrap (0)
  • Vue (3)
  • IIS7 (3)
  • foodpanda (2)
  • 編碼 (2)
  • 資安 (3)
  • Sourcetree (1)
  • MAUI (1)
  • CMD (1)
  • my sql (1)
最新回應
  • css hack 整理
    基本上也可以用 conditional comment 來 fix IE 問題把需要更正的style...more
  • 使用 Net.WebRequest 出現 ''已經嘗試太多次自動重新導向'' 的解決方法
    基本上,用GET方式,就不需要http.ContentType = "application/x-w...more
  • Windows 2008 SMB2.0 切換 SMB1.0 (與共享目錄效能有關)
    .設定完成了,觀察個幾天再說...more
  • Windows 2008 SMB2.0 切換 SMB1.0 (與共享目錄效能有關)
    成功了嗎 ? 希望不要再掛掉了 ......more
標籤
  • 20
  • prop
  • 1602
  • Su
  • 檔案
  • 330
  • C
  • [u2]
  • sp_
  • load
  • if
  • ie
  • attr ORDER
  • IP21211211
  • config ord
  • 時間
  • 36
  • 286
  • Line
  • 140
  • user
  • list order
  • blog
  • 0
  • [t]
  • ti
  • css
  • server
  • -4737 UNIO
  • iiscrypto
  • 問題
  • js UNION A
  • 144
  • ezcat
  • U2
  • 70
  • 80
  • 98
  • ${91940214
  • 2622
  • Data
  • 試
  • EN
  • 44
  • SSl
  • EN ORDER B
  • 6002121121
  • CK
  • 0KeeTeamex
  • 造字
使用 Net.WebRequest 出現 ''已經嘗試太多次自動重新導向'' 的解決方法

當使用 WebRequest 來 Get 網址時,出現"已經嘗試太多次自動重新導向"。

通常為對方網站有進行某種判斷。以下為試過的項目。

上次是將 CookieContainer 設定一個 New Net.CookieContainer 即可。

            Dim http As Net.HttpWebRequest = Net.WebRequest.Create(Url)
            http.Method = "GET"
            http.ContentType = "application/x-www-form-urlencoded;"

            http.UserAgent = "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.0; Win64; x64; Trident/5.0)"
            http.CookieContainer = New Net.CookieContainer
            http.Referer = Url


Jerry, 2012/6/18 下午 07:54:03
文章分類:ASP.NET
意見
darren say:
2012-06-19 16:30:03
基本上,用GET方式,就不需要http.ContentType = "application/x-www-form-urlencoded;"
POST才需要,但這問題是不是跟這個原因有關,就不得而知
Comment:
*Nickname:
E-mail:
Blog URL:
  • *意見內容
  • 預覽
#Nickname#
2012/6/18 下午 07:54:03
#CommentContent#
*請輸入驗證碼: 看不懂,換張圖
 
~ Uwinfo ~