Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re: Re: Re: Just Another Thread Hacker

by benn (Vicar)
on Oct 09, 2003 at 11:11 UTC ( #297876=note: print w/replies, xml ) Need Help??

in reply to Re: Re: Just Another Thread Hacker
in thread Just Another Thread Hacker

Well, if we're golfing...
use threads;use IO'Socket;print$_->join for map threads-> create(sub{$o=IO'Socket'INET->new('');print$o "GET /?node_id=$_[0]\n\n";local$/;<$o>=~/e>(\w+\s)/},$_),9655 ,6352,297065,138903;print$/
A wee bit slower (it grabs the full HTML) and not as prettily formatted, but comes in at 207.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://297876]
Corion idly wonders about creating a series of HTTP requests. There seems to be no framework to generate a series of HTTP requests, like "try all these requests"
[Corion]: This is vaguely inspired by that list of "nasty" strings, which I'd like to replace among HTTP parameters, just to see whether the application crashes, but also for easy downloading of a list of URLs etc
[Corion]: Maybe I'll just conoct something using Algorithm::Permute to create an (OO) generator for such requests, or a simple function.
[Corion]: For testing I imagine one would want to test a random sampling of such "bad"/"unexpected" requests, while for downloading, one would want to generate them all in order, but not necessarily as a huge list

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2017-01-16 15:40 GMT
Find Nodes?
    Voting Booth?
    Do you watch meteor showers?

    Results (151 votes). Check out past polls.