Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re^2: Read file after download

by kepler (Scribe)
on Jul 01, 2020 at 19:01 UTC ( #11118768=note: print w/replies, xml ) Need Help??

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


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 (Archbishop) 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.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11118768]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (2)
As of 2020-08-09 14:45 GMT
Find Nodes?
    Voting Booth?
    Which rocket would you take to Mars?

    Results (54 votes). Check out past polls.