Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: How to make an HTTP request with an equivalent of curl's --max-time?

by blindluke (Hermit)
on Jan 14, 2015 at 06:51 UTC ( [id://1113197]=note: print w/replies, xml ) Need Help??


in reply to How to make an HTTP request with an equivalent of curl's --max-time?

Take a look at Time::Limit. It is possible that it will be the right tool for the task ahead of you.

See: Self terminating a script after a specified time for a problem similar to yours. Take note of this anonymous reply with some very useful notes about alarm.

- Luke

  • Comment on Re: How to make an HTTP request with an equivalent of curl's --max-time?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2025-12-12 16:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (92 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.