HTTPS Download File
HTTPS Download File
Hallo
Wegen dieser DSGVO Verordnung werden viele Internetseiten von Http auf Https umgestellt.
Bisher hab ich die Datei immer per Winapi herunter geladen.
InternetOpen_
InternetOpenUrl_
InternetReadFile_
InternetCloseHandle_
InternetCloseHandle_
Was mit der Umstellung nicht mehr funktioniert.
Wie ist es wieder möglich ?
Die Suche im Forum brachte wenig nützliches.
Grüße
Lite
Wegen dieser DSGVO Verordnung werden viele Internetseiten von Http auf Https umgestellt.
Bisher hab ich die Datei immer per Winapi herunter geladen.
InternetOpen_
InternetOpenUrl_
InternetReadFile_
InternetCloseHandle_
InternetCloseHandle_
Was mit der Umstellung nicht mehr funktioniert.
Wie ist es wieder möglich ?
Die Suche im Forum brachte wenig nützliches.
Grüße
Lite
Re: HTTPS Download File
Gibt es eine Beispiel URL ?
Soweit ist mir noch nichts aufgefallen.
Soweit ist mir noch nichts aufgefallen.
Re: HTTPS Download File
Warum mit WinAPI?
Mit PB gehts problemlos:
Mit PB gehts problemlos:
Code: Alles auswählen
InitNetwork()
If ReceiveHTTPFile("https://www.rsbasic.de/downloads/live_backup_system.zip", "D:\live_backup_system.zip")
Debug "Success"
Else
Debug "Failed"
EndIf
Re: HTTPS Download File
Weil PureBasic keine bzw. nur limitierte Funktionen bietet.RSBasic hat geschrieben:Warum mit WinAPI?
Es gibt z.B. keine Möglichkeit den Fortschritt eines Downloads zu ermitteln
diesen ggf. zu unterbrechen oder fortzusetzten.
Die Url: https://www.rsbasic.de/downloads/live_backup_system.zip funktioniert problemlos mit WinApi.
Re: HTTPS Download File
Wieso?
Ergebnis = HTTPProgress(HttpVerbindung) ...
Ergebnis = HTTPProgress(HttpVerbindung) ...
Alles ist möglich, fragt sich nur wie...
Projekte ThreadToGUI / EventDesigner V3 / OOP-BaseClass-Modul
Downloads auf MyWebspace / OneDrive
Projekte ThreadToGUI / EventDesigner V3 / OOP-BaseClass-Modul
Downloads auf MyWebspace / OneDrive
Re: HTTPS Download File
Wie soll das helfen ?mk-soft hat geschrieben:Wieso?
Ergebnis = HTTPProgress(HttpVerbindung) ...
Code: Alles auswählen
#PB_Http_Success : the download has been successfully finished.
#PB_Http_Failed : the download has failed.
#PB_Http_Aborted : the download has been aborted with AbortHTTP().
Re: HTTPS Download File
Carefully read the PureBasic help:
If return value is positive the function returns the current number of received bytes.
If HTTPProgress returns a negative value it is one of the constants.Return value
The status of the download. It can be the current number of recieved bytes or one of the following value:
Code: Alles auswählen
#PB_Http_Success : the download has been successfully finished. #PB_Http_Failed : the download has failed. #PB_Http_Aborted : the download has been aborted with AbortHTTP().
If return value is positive the function returns the current number of received bytes.
Windows 10
PB Last Final / (Sometimes testing Beta versions)
PB Last Final / (Sometimes testing Beta versions)
Re: HTTPS Download File
Why in english ?helpy hat geschrieben:Carefully read the PureBasic help:If HTTPProgress returns a negative value it is one of the constants.Return value
The status of the download. It can be the current number of recieved bytes or one of the following value:
Code: Alles auswählen
#PB_Http_Success : the download has been successfully finished. #PB_Http_Failed : the download has failed. #PB_Http_Aborted : the download has been aborted with AbortHTTP().
If return value is positive the function returns the current number of received bytes.
Your are right about this, but in no way does this invalidate my other points.
I also want to remind everyone that the original question was solely about WinApi !
Re: HTTPS Download File
Sorry!
Ich verwende grundsätzlich die englische Hilfe und bin dann in dieser Sprache geblieben.
Mit WinAPI arbeite ich recht wenig, meine Antwort bezog sich nur auf die Aussage "Es gibt keine Informationen zum aktuellen Fortschritt." und hat keineswegs die anderen Punkte in Frage gestellt.
Evt. hilft ja MSDN weiter:
==> https://msdn.microsoft.com/en-us/librar ... s.85).aspx
Das musst Du aber selbst evaluieren. Ich will mich da nicht weiter vertiefen.
Gruß,
Guido
__________________________________________________
URL-Tags hinzugefügt
21.05.2018
RSBasic
Ich verwende grundsätzlich die englische Hilfe und bin dann in dieser Sprache geblieben.
Mit WinAPI arbeite ich recht wenig, meine Antwort bezog sich nur auf die Aussage "Es gibt keine Informationen zum aktuellen Fortschritt." und hat keineswegs die anderen Punkte in Frage gestellt.
Evt. hilft ja MSDN weiter:
==> https://msdn.microsoft.com/en-us/librar ... s.85).aspx
Das musst Du aber selbst evaluieren. Ich will mich da nicht weiter vertiefen.
Gruß,
Guido
__________________________________________________
URL-Tags hinzugefügt
21.05.2018
RSBasic
Windows 10
PB Last Final / (Sometimes testing Beta versions)
PB Last Final / (Sometimes testing Beta versions)
Re: HTTPS Download File
@RsBasic
Danke für dein Beispiel. Es funktioniert prima.
Nur verwende ich für mein Prg PB 5.24 und alles in Winapi.
Alles umschreiben wäre ein riesen Aufwand.
Per Winapi gibt es nix ?
Grüße
Lite
Danke für dein Beispiel. Es funktioniert prima.
Nur verwende ich für mein Prg PB 5.24 und alles in Winapi.
Alles umschreiben wäre ein riesen Aufwand.
Per Winapi gibt es nix ?
Grüße
Lite