“too many automatic redirections were attempted” error message when using a httpWebRequest in .NET

后端 未结 4 1528
不思量自难忘°
不思量自难忘° 2021-01-01 14:52

I am attempting to request a page like \"http://www.google.com/?q=random\" using the webrequest class in vb.net. we are behind a firewall, so we have to authenticate our req

4条回答
  •  醉梦人生
    2021-01-01 15:38

    loHttp.AllowAutoRedirect = true
    

    Instead of this, you have to use

    loHttp.AllowAutoRedirect = False
    

    to avoid error the error

    "TOO MANY AUTOMATIC REDIRECTION WERE ATTEMPTED"

提交回复
热议问题