jnymris Posted October 22, 2014 Share Posted October 22, 2014 Hi, I am currently using a webbrowse from within vb.net and have been able to navigate to a website login successfully. I am now looking to be able to download a .tar.gz and specific where to save this file to. (In order to get access to the download you have to login to create a cookie hence why i have logged in) When attempting to load the page (http://mysite/admin/backup.tar.gz) this then returns a dialog box. I am looking to see if i cane save this file automatically and not prompt the user? Example code to populate the username section For Each element As HtmlElement In WebBrowser1.Document.GetElementsByTagName("input") If element.Name = "sessionUser" Then Dim i = 0 Dim strLine = "admin" element.InnerText = strLine End If Next and here is when prompts to save the file as: WebBrowser1.Navigate("http://85.189.65.77/admin/backup.whtm/update/backup.tar.gz") Thanks Johnny Link to comment Share on other sites More sharing options...
justsomeguy Posted October 22, 2014 Share Posted October 22, 2014 You'll need to look up the reference for the web browser control to see what you can use. My initial instinct would say that you cannot programmatically control dialog boxes, but they might provide a way for you to do it. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now