Download file unfinished - WeOnlyDo Discussion board

Download file unfinished (wodHttpDLX)

by Ludo, Monday, November 10, 2008, 10:54 (5653 days ago)

Download file unfinished

I create a script (VBscript) that allows to download a file. this script starts and terminate well but does not fully downloaded the file why? if I use a tool like paros, the download has realized correctly.

I don't understand this problem.

[code]
http1.Blocking = 1
http1.Response.Filename = BDFCDDEM.txt
http1.URL = www.testsite.org/EnvPublic/servlet/gfin.Download?indice=0

'Gestion des cookies ( envoie des cookies recus)
for j = 0 To http1.Response.Cookies.Count - 1
http1.Request.Cookies.Add http1.Response.Cookies(j).Name, http1.Response.Cookies(j).Value
Next

'Envoi de la requette GET avec ses parametres
http1.Get

' Gestion des erreurs
If http1.LastError <> 0 Then
MsgBox Code erreur du GET de récupération : & http1.LastError
End If

[/code]

Best regards.


Complete thread: