Hello, my problem here is that zippyshare generates links that only works with that current session. So, I want the webbrowser to download the file, but not show the dialog as it is a automated tool to download files.
I tried getting the direct url to file and using,
My.Computer.Network.DownloadFile(dlurl, Application.StartupPath + "\123.zip")
dlurl from where i got the url of file as string.
I tried it after and before downloading the file from webbrowser but my bad both of them failed and returned me a 0 bytes file in that location :/
Its like i can only download from the webbrowser session.
Dim Str As String = Me.WebBrowser1.Document.GetElementById("downloadB").GetAttribute("href")
If (Str.EndsWith("zip")) Then
WebBrowser1.Navigate("http://www33.zippyshare.com" + Str)
End If
Is this possible in c++ ? I need to first get the url from webbrowser.document and then download it and save it. Even console applications will do till I am able to get the ID, i had to use the webbrowser so i can get the webbrowser.document to get the link.
Links only work with that session. If I download the file from, lets say chrome, and then copy the direct link to firefox it won't work. but inside chrome i can use the link again and again and download it.