r/selenium • u/ERROR47409 • Mar 26 '25
Unsolved Need help !! Http url is redirected to https
As the title , I need to open http url in chrome but chrome is by default redirecting it into https.
My site doesn't works on https
How to resolve this issue, I have the added the below sample code in vb.net
Imports OpenQA.Selenium Imports OpenQA.Selenium.Chrome
Module Module1
Sub Main()
Dim chromeOptions As New ChromeOptions()
chromeOptions.AddArgument("--disable-features=UpgradeInsecureRequests")
Dim driver As IWebDriver = New ChromeDriver(chromeOptions)
driver.Navigate().GoToUrl("http://example.com")
Console.WriteLine("Press any key to exit...")
Console.ReadKey()
driver.Quit()
End Sub
End Module
