http://qs321.pair.com?node_id=11118768


in reply to Re: Read file after download
in thread Read file after download

Hi

Thanks for answering. No matter the data - it can be json, text file, etc. The process of the download (or for get) the full data is slower than the routine to process it, which must be called after that. I achieved once this with a callback function in a LWP http request, but I am not been able to do repeat it again.

Replies are listed 'Best First'.
Re^3: Read file after download
by marto (Cardinal) on Jul 01, 2020 at 19:34 UTC

    Do you have some example URLs? How many do you have? Can you show an example of the processing routine? Perhaps Mojo::UserAgent in conjunction with Mojo::Promise (see the Mojo::UA example) or Mojo::IOLoop would help runtime.