carlriz has asked for the wisdom of the Perl Monks concerning the following question:
Hey guys, I have been working on a script lately (http://www.perlmonks.org/?node_id=1077266). My script makes an http request for a json file, and the server returns this message when the request is successful: {"status":"completed"}. However, I am making 50 simultaneous HTTP requests, and the server queues each request and processes them one at time. This is the response I get back from the server:
.How do I print out each HTTP response when it completes? In other words, I want to print out all 50 requests until they all have completed, sort of in a loop, to actively see the status of each request. When the status completes, I wanted to decode and print the json. Is this possible using threads? (see my code in link){"status":"waiting","est_comp":3276986209950}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: HTTP Request Objects and LWP
by GotToBTru (Prior) on Mar 10, 2014 at 16:44 UTC |