la classe winhttp vous permet de télécharger une ressource via http.
"zihounep" a écrit dans le message de news:
merci par avance ;o)
zihounep
Merci mais j'ai trouve un exemple sur MSDN qui me semble bien car il gere les timeout @+ Ex: Const BADURL = 35761 ' Error value constant On Error GoTo ErrorHandler: Inet1.RequestTimeout = 4 txtHTML.Text = Inet1.OpenURL(txtURL.Text) Exit Sub ErrorHandler: Select Case Err.Number Case BADURL MsgBox "The URL '" & txtURL.Text & "' could not be found." Case Else MsgBox "Error accessing " & txtURL.Text End Select
la classe winhttp vous permet de télécharger une ressource via http.
"zihounep" a écrit dans le message de news:
merci par avance ;o)
Merci mais j'ai trouve un exemple sur MSDN qui me semble bien car il gere les
timeout
@+
Ex:
Const BADURL = 35761 ' Error value constant
On Error GoTo ErrorHandler:
Inet1.RequestTimeout = 4
txtHTML.Text = Inet1.OpenURL(txtURL.Text)
Exit Sub
ErrorHandler:
Select Case Err.Number
Case BADURL
MsgBox "The URL '" & txtURL.Text & "' could not be found."
Case Else
MsgBox "Error accessing " & txtURL.Text
End Select
la classe winhttp vous permet de télécharger une ressource via http.
"zihounep" <zihounep@discussions.microsoft.com> a écrit dans le message de
news: F4E8EDD7-5D32-4E84-8B7E-7611B273A5F6@microsoft.com...
Merci mais j'ai trouve un exemple sur MSDN qui me semble bien car il gere les timeout @+ Ex: Const BADURL = 35761 ' Error value constant On Error GoTo ErrorHandler: Inet1.RequestTimeout = 4 txtHTML.Text = Inet1.OpenURL(txtURL.Text) Exit Sub ErrorHandler: Select Case Err.Number Case BADURL MsgBox "The URL '" & txtURL.Text & "' could not be found." Case Else MsgBox "Error accessing " & txtURL.Text End Select
la classe winhttp vous permet de télécharger une ressource via http.