Jump to content

Recommended Posts

Posted (edited)

I'm using InetGet + InetGetInfo  to download quite big file 137 MBytes.

On one PC I get from  InetGetInfo      @error = 32 and @extended = 12002

What could be causing this problem ?
Do you know the AutoIt some methods of downloading with resuming ?

Regards,
mLipok

Edited by mLipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

Are you able to dowload it manually? How long does it take to return that error?

I don't know internal behaviour of InetGet, but the only way to download huge files avoiding errors using WinInet API is to split the file request in multiple InternetReadFile calls, each one returns few bytes.

Resuming download is possible, but it is based on server support of Range and If-Range HTTP request headers.

Read here and here, and this is a partial Autoit implementation using WinHTTP.

 

Posted
  On 11/28/2016 at 9:31 AM, j0kky said:

Are you able to dowload it manually?

Expand  

No.

  On 11/28/2016 at 9:31 AM, j0kky said:

How long does it take to return that error?

Expand  

max 28 MBytes

  On 11/28/2016 at 9:31 AM, j0kky said:

I don't know internal behaviour of InetGet, but the only way to download huge files avoiding errors using WinInet API is to split the file request in multiple InternetReadFile calls, each one returns few bytes.

Expand  

I have this problem only on one host, but it works correctly on 40 another host.
So this is not problem with FileSize but with InternetConnection.

  On 11/28/2016 at 9:31 AM, j0kky said:

Resuming download is possible, but it is based on server support of Range and If-Range HTTP request headers.

Read here and here, and this is a partial Autoit implementation using WinHTTP.

Expand  

Thanks for links. I will look at this.

 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted (edited)
  On 11/28/2016 at 11:06 AM, mLipok said:
  On 11/28/2016 at 9:31 AM, j0kky said:

I don't know internal behaviour of InetGet, but the only way to download huge files avoiding errors using WinInet API is to split the file request in multiple InternetReadFile calls, each one returns few bytes.

Expand  

I have this problem only on one host, but it works correctly on 40 another host.
So this is not problem with FileSize but with InternetConnection.

Expand  

What I meant is that you can't know how InetGet behaves, for example in this case we need to download little chuncks of the file with a longer timeout.

Have you tried to download that file with a customizable download manager? If it fails too, I don't know if you can make a script that successfully download the file...

Edited by j0kky
Posted

In the meantime I have tried Mozilla "Download Them All" with no success :(

 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

I just read about InternetSetFilePointer, a native WinInet function which accomplish download resuming, you can try to make something like this one (finally the autor uses anyway Range header, but it's because it would write code for multiple downloads), remembering to set an appropriate timeout through InternetSetOption.

Posted

I see that I should try _WinINet_InternetReadFile()

 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

This server is my own server, and I said that I'm able to download on many other host.

 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

There is really something wrong with InternetConnection on this host. As DownloadThemAll not working properly.

I will try to find other solutions.

 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...