Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #101269

Re: What is the fastest way to do 400 HTTP requests using requests library?

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Tim Chase <python.list@tim.thechases.com>
Newsgroups comp.lang.python
Subject Re: What is the fastest way to do 400 HTTP requests using requests library?
Date Tue, 5 Jan 2016 05:43:47 -0600
Lines 21
Message-ID <mailman.16.1451994895.2305.python-list@python.org> (permalink)
References <0e42a90b-b736-4050-a20c-6d387048daf3@googlegroups.com> <568b027c$0$1588$c3e8da3$5496439d@news.astraweb.com> <CALwzid=F7kwMijtc6pmPRkSgqOWeP7sx8366Eo56GuNuY7oD1g@mail.gmail.com> <mailman.13.1451984029.2305.python-list@python.org> <568b8eff$0$1588$c3e8da3$5496439d@news.astraweb.com>
Mime-Version 1.0
Content-Type text/plain; charset=US-ASCII
Content-Transfer-Encoding 7bit
X-Trace news.uni-berlin.de KgEpHwKQEWl7a5m9WPDd8QtUSVA0HMWig26RkrLSvA1Q==
Return-Path <python.list@tim.thechases.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.003
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'subject:library': 0.09; 'subject:using': 0.09; 'jan': 0.11; 'server,': 0.15; 'subject: \n ': 0.15; '-tkc': 0.16; '2016': 0.16; '[*]': 0.16; 'from:addr:python.list': 0.16; 'from:addr:tim.thechases.com': 0.16; 'from:name:tim chase': 0.16; 'received:10.255': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'rush.': 0.16; 'subject:fastest': 0.16; 'subject:requests': 0.16; 'wrote:': 0.16; ';-)': 0.18; 'header:In-Reply-To:1': 0.24; 'requests': 0.25; 'van': 0.26; 'errors.': 0.27; 'received:184': 0.30; 'generally': 0.32; 'maybe': 0.33; "d'aprano": 0.33; 'http': 0.33; 'steven': 0.33; 'tue,': 0.34; 'except': 0.34; 'url:org': 0.36; 'to:addr :python-list': 0.36; 'subject:?': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'received:10': 0.37; 'charset:us-ascii': 0.37; 'things': 0.38; 'someone': 0.38; 'why': 0.39; 'subject:the': 0.39; 'to:addr:python.org': 0.40; 'more': 0.63; "they're": 0.66
X-Sender-Id wwwh|x-authuser|tim@thechases.com
X-Sender-Id wwwh|x-authuser|tim@thechases.com
X-MC-Relay Neutral
X-MailChannels-SenderId wwwh|x-authuser|tim@thechases.com
X-MailChannels-Auth-Id wwwh
X-MC-Loop-Signature 1451994359307:3505864108
X-MC-Ingress-Time 1451994359307
In-Reply-To <568b8eff$0$1588$c3e8da3$5496439d@news.astraweb.com>
X-Mailer Claws Mail 3.11.1 (GTK+ 2.24.25; x86_64-pc-linux-gnu)
X-AuthUser tim@thechases.com
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Xref csiph.com comp.lang.python:101269

Show key headers only | View raw


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


Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

What is the fastest way to do 400 HTTP requests using requests library? livemsn22@gmail.com - 2016-01-04 12:50 -0800
  Re: What is the fastest way to do 400 HTTP requests using requests library? Steven D'Aprano <steve@pearwood.info> - 2016-01-05 10:38 +1100
    Re: What is the fastest way to do 400 HTTP requests using requests library? Ian Kelly <ian.g.kelly@gmail.com> - 2016-01-04 16:51 -0700
    Re: What is the fastest way to do 400 HTTP requests using requests library? Tony van der Hoff <tony@vanderhoff.org> - 2016-01-05 09:53 +0100
      Re: What is the fastest way to do 400 HTTP requests using requests library? Steven D'Aprano <steve@pearwood.info> - 2016-01-05 20:38 +1100
        Re: What is the fastest way to do 400 HTTP requests using requests library? Tim Chase <python.list@tim.thechases.com> - 2016-01-05 05:43 -0600
        Re: What is the fastest way to do 400 HTTP requests using requests library? Paul Rubin <no.email@nospam.invalid> - 2016-01-05 09:02 -0800
          Re: What is the fastest way to do 400 HTTP requests using requests library? Ian Kelly <ian.g.kelly@gmail.com> - 2016-01-05 10:32 -0700

csiph-web