What is the fastest way to do 400 HTTP requests using requests library?
Tim Chase
python.list at tim.thechases.com
Tue Jan 5 06:43:47 EST 2016
On 2016-01-05 20:38, Steven D'Aprano wrote:
> On Tue, 5 Jan 2016 07:53 pm, Tony van der Hoff wrote:
>
> > Why would someone want to make 400 HTTP requests in a short time?
>
> For the same reason they want to make 400 HTTP requests over a long
> time, except that they're in a hurry.
>
> Maybe they're stress-testing a web server, or they just want to
> download things in a rush.
Maybe they just want to generate lots of errors. It's generally more
productive to make lots of 200 HTTP requests[*]. ;-)
-tkc
[*] http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
More information about the Python-list
mailing list