OVH Cloud OVH Cloud

API

2 réponses
Avatar
new
Bonjour

Je passé par

api
Public Declare Function InternetOpen Lib "wininet.dll" Alias "InternetOpenA"
(ByVal sAgent As String, ByVal lAccessType As Long, ByVal sProxyName As
String, ByVal sProxyBypass As String, ByVal lFlags As Long) As Long

Public Declare Function InternetOpenUrl Lib "wininet.dll" Alias
"InternetOpenUrlA" (ByVal hOpen As Long, ByVal sURL As String, ByVal
sHeaders As String, ByVal lLength As Long, ByVal lFlags As Long, ByVal
lContext As Long) As Long

Public Declare Function InternetReadFile Lib "wininet.dll" (ByVal hFile As
Long, ByVal sBuffer As String, ByVal lNumBytesToRead As Long,
lNumberOfBytesRead As Long) As Integer

Public Declare Function InternetCloseHandle Lib "wininet.dll" (ByVal hInet
As Long) As Integer

Qui fonctionne avbec IE 6 pour telecharger en automatique les fichier http

Mais ne fontionne avce IE 8.

Qu'elle personne aurai une solution de telecagement de fichier en mode
automatique

http://www.abcdemploi.com

Merci

Alain L

2 réponses

Avatar
Alexis
new wrote:

Bonjour



Qui fonctionne avbec IE 6 pour telecharger en automatique les fichier http

Mais ne fontionne avce IE 8.

Qu'elle personne aurai une solution de telecagement de fichier en mode
automatique



Il y a de nombreuses methodes aves les apis .
cf sur le groupe des pros des apis http://minilien.com/?7bYkTjjcpy
(haut niveau..)
Avatar
claiyah
new a écrit le 07/12/2009 à 21h03 :
Bonjour

Je passé par

api
Public Declare Function InternetOpen Lib "wininet.dll" Alias
"InternetOpenA"
(ByVal sAgent As String, ByVal lAccessType As Long, ByVal sProxyName As
String, ByVal sProxyBypass As String, ByVal lFlags As Long) As Long

Public Declare Function InternetOpenUrl Lib "wininet.dll" Alias
"InternetOpenUrlA" (ByVal hOpen As Long, ByVal sURL As String, ByVal

sHeaders As String, ByVal lLength As Long, ByVal lFlags As Long, ByVal
lContext As Long) As Long

Public Declare Function InternetReadFile Lib "wininet.dll" (ByVal
hFile As
Long, ByVal sBuffer As String, ByVal lNumBytesToRead As Long,
lNumberOfBytesRead As Long) As Integer

Public Declare Function InternetCloseHandle Lib "wininet.dll" (ByVal
hInet
As Long) As Integer

Qui fonctionne avbec IE 6 pour telecharger en automatique les fichier http

Mais ne fontionne avce IE 8.

Qu'elle personne aurai une solution de telecagement de fichier en mode
automatique

http://www.abcdemploi.com

Merci

Alain L


bonjour

voila plusieurs façons pour télécharger un fichier du net:
http://www.codyx.org/snippet_telecharger-fichier-api_29.aspx
http://www.codyx.org/snippet_telecharger-fichier-inet_30.aspx
http://www.codyx.org/snippet_telecharger-fichier-avec-winhttp-winhttp-dll_55.aspx
http://www.codyx.org/snippet_telecharger-fichier-apres-ouverture-boite-dialogue-saveas_684.aspx

à vous de choisir ce qui te convient le plus