Download file unfinished - WeOnlyDo Discussion board

Download file unfinished (wodHttpDLX)

by Ludo, Monday, November 10, 2008, 10:54 (5858 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.

Re: Download file unfinished

by wodDamir, Monday, November 10, 2008, 11:25 (5858 days ago) @ Ludo

Hi,

Any chance we could try this? I tried opening the URL in IE, but it failed loading the page.

What version are you using? Could you please try updating and try it then?

Regards,
Damba

Re: Download file unfinished

by Ludo, Monday, November 10, 2008, 11:34 (5858 days ago) @ wodDamir

it's a https site : https://www.guichet.banque-france.org/EnvPublic/servlet/gfin.Download?indice=0

but i'don't understand why if I run several times I do not have the same result once I have dowload 60 and an other 80

Re: Download file unfinished

by wodDamir, Monday, November 10, 2008, 12:46 (5858 days ago) @ Ludo

Ludo,

that link redirects me to an error page (in french so I can't say what's wrong). Can you please provide me some valid link so I could try duplicating the problem?

Regards,
Damba

Re: Download file unfinished

by Ludo, Monday, November 10, 2008, 14:41 (5858 days ago) @ wodDamir

it's not a error page because we must identify before.

In fact, I would like to download a file from the HTTPS site but the file does not fully received.

how can we know the file size and the progress download (wodHttpNotify Object -> progress but why ?)

I added a debug file before using the method get to download the file

First time
[code]
** Connecting to www.guichet.banque-france.org on port 443
** Requesting URL https://www.guichet.banque-france.org/EnvPublic/servlet/gfin.Download?indice=0
CONNECT www.guichet.banque-france.org:443 HTTP/1.1
Host: www.guichet.banque-france.org
Proxy-Connection: Keep-Alive
Content-Length: 0

HTTP/1.0 200 Connection established

** Done receiving response
** Requesting URL https://www.guichet.banque-france.org/EnvPublic/servlet/gfin.Download?indice=0
GET /EnvPublic/servlet/gfin.Download?indice=0 HTTP/1.0
Host: www.guichet.banque-france.org
Cookie: JSESSIONID=353D49CE73B79E001AD4932FC78EBDA0
Connection: Keep-Alive

HTTP/1.1 200 OK
Date: Mon, 10 Nov 2008 13:33:13 GMT
Server: Apache
Content-Disposition: inline; filename=FDM_COMPTE_RENDU_DEC.TXT;
Connection: close
Content-Type: application/zip

01FDMTR2008110719520802380210918SE
04FDMTR2008110719520802380210918SE 0000101502008110719320620081107173001000000000000000000000000000000 000000000
04FDMTR2008110719520802380210918SE 0000201502008110719320620081107173001000000000000000000000000000000 000000000
04FDMTR2008110719520802380210918SE 0000301502008110719320620081107173001000000000000000000000000000000 000000000

Re: Download file unfinished

by Ludo, Monday, November 10, 2008, 14:55 (5858 days ago) @ Ludo

it's not a error page because we must identify before.

In fact, I would like to download a file from the HTTPS site but the file does not fully received.

how can we know the file size and the progress download (wodHttpNotify Object -> progress but why ?)

I added a debug file before using the method get to download the file

First time
[code]
** Connecting to www.guichet.banque-france.org on port 443
** Requesting URL https://www.guichet.banque-france.org/EnvPublic/servlet/gfin.Download?indice=0
CONNECT www.guichet.banque-france.org:443 HTTP/1.1
Host: www.guichet.banque-france.org
Proxy-Connection: Keep-Alive
Content-Length: 0

HTTP/1.0 200 Connection established

** Done receiving response
** Requesting URL https://www.guichet.banque-france.org/EnvPublic/servlet/gfin.Download?indice=0
GET /EnvPublic/servlet/gfin.Download?indice=0 HTTP/1.0
Host: www.guichet.banque-france.org
Cookie: JSESSIONID=353D49CE73B79E001AD4932FC78EBDA0
Connection: Keep-Alive

HTTP/1.1 200 OK
Date: Mon, 10 Nov 2008 13:33:13 GMT
Server: Apache
Content-Disposition: inline; filename=FDM_COMPTE_RENDU_DEC.TXT;
Connection: close
Content-Type: application/zip

01FDMTR2008110719520802380210918SE
04FDMTR2008110719520802380210918SE 0000101502008110719320620081107173001000000000000000000000000000000 000000000
04FDMTR2008110719520802380210918SE 0000201502008110719320620081107173001000000000000000000000000000000 000000000
04FDMTR2008110719520802380210918SE 0000301502008110719320620081107173001000000000000000000000000000000 000000000

Re: Download file unfinished

by wodDamir, Monday, November 10, 2008, 15:30 (5858 days ago) @ Ludo

Ludo,

We need to duplicate this issue in order to see why this would occur.

Could you perhaps send us a simple sample that we could use to run on our side and duplicate the behaviour here? If so, you can send the sample to techsupport@weonlydo.com

Also, what version of the component do you use? Can you please check what your Version property returns?

As for download size, you can't know it unless server provides it using Content-Type header.

Regards,
Damba

Re: Download file unfinished

by Ludo, Monday, November 10, 2008, 15:56 (5858 days ago) @ wodDamir

OK it's done I sent the mail