Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Tim Chase 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: References: <0e42a90b-b736-4050-a20c-6d387048daf3@googlegroups.com> <568b027c$0$1588$c3e8da3$5496439d@news.astraweb.com> <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: 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:101269 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