Return-Path: X-Original-To: apmail-jmeter-dev-archive@minotaur.apache.org Delivered-To: apmail-jmeter-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 93FBA1146F for ; Sat, 30 Aug 2014 19:37:35 +0000 (UTC) Received: (qmail 41669 invoked by uid 500); 30 Aug 2014 19:37:35 -0000 Delivered-To: apmail-jmeter-dev-archive@jmeter.apache.org Received: (qmail 41633 invoked by uid 500); 30 Aug 2014 19:37:35 -0000 Mailing-List: contact dev-help@jmeter.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jmeter.apache.org Delivered-To: mailing list dev@jmeter.apache.org Received: (qmail 41610 invoked by uid 99); 30 Aug 2014 19:37:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 30 Aug 2014 19:37:35 +0000 X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=FREEMAIL_REPLY,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of philippe.mouawad@gmail.com designates 209.85.223.176 as permitted sender) Received: from [209.85.223.176] (HELO mail-ie0-f176.google.com) (209.85.223.176) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 30 Aug 2014 19:37:30 +0000 Received: by mail-ie0-f176.google.com with SMTP id x19so4419611ier.35 for ; Sat, 30 Aug 2014 12:37:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=MahPZp677jE1hRm75OGGjkNQtEbNto1mlV4v9ePodZ0=; b=YhXWEGAengrP+Uo7Z10w87kdTksXo/bkQV/75F94AzNxJlXyHK4kfShiCcoG9q8HYU 7HLszSfmZlvGOGCo4OT7pAZGQWr72UulPBU8sUiUiBjlL4aQI3WiQmzcBi2c0HYphUvw ZxfcTQXUmVANcd7OCQYg41mBQKyKAydsOckF7KcAv/LJNM7IXw+rKFhWABmErmUBocGl SqUP6eWdp3EPkreCF/PQcOLRs31GBfWSCmPGhfm+pLsJYEZm9zfayhzc4tYTY5UxAYVC OCLrM5pWfIOYNkFlQ4FL/3Xs7NePjYzqhTNCYOMq4IgRJljtyivVbBnsk0dMEglah363 e2dA== MIME-Version: 1.0 X-Received: by 10.50.25.105 with SMTP id b9mr12020501igg.46.1409427429898; Sat, 30 Aug 2014 12:37:09 -0700 (PDT) Received: by 10.42.50.141 with HTTP; Sat, 30 Aug 2014 12:37:09 -0700 (PDT) In-Reply-To: References: Date: Sat, 30 Aug 2014 21:37:09 +0200 Message-ID: Subject: Re: JMeter returns 204 code when URL is found in cache From: Philippe Mouawad To: "dev@jmeter.apache.org" Content-Type: multipart/alternative; boundary=047d7bd74a264bc2e40501dde5f7 X-Virus-Checked: Checked by ClamAV on apache.org --047d7bd74a264bc2e40501dde5f7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello, Issue has been fixed, feel free to give nightly build a try and give feedback. Thanks Regards On Sun, Mar 31, 2013 at 9:40 PM, Philippe Mouawad < philippe.mouawad@gmail.com> wrote: > Created: > https://issues.apache.org/bugzilla/show_bug.cgi?id=3D54778 > > > On Fri, Mar 29, 2013 at 10:27 PM, Shmuel Krakower > wrote: > >> OK, yeah it is true, but as I don't have sources of JMeter in hand, I >> would >> guess that the referenced piece of code is calling to either: >> >> http://jmeter.apache.org/api/org/apache/jmeter/protocol/http/sampler/HTT= PSampleResult.html#setResponseNoContent() >> which it shouldn't? or to: >> >> http://jmeter.apache.org/api/org/apache/jmeter/samplers/SampleResult.htm= l#setResponseCode(java.lang.String) >> >> which can accept any string, without any restrictions/rules. Thus if it >> was >> up to me, I would set it to "Cached" instead of "204". >> >> Shmuel Krakower. >> www.Beatsoo.org - re-use your jmeter scripts for application performance >> monitoring from worldwide locations for free. >> >> >> On Sat, Mar 30, 2013 at 12:07 AM, Philippe Mouawad < >> philippe.mouawad@gmail.com> wrote: >> >> > I didn't notice it myself, I found it in a tweet: >> > >> > - https://twitter.com/Scooletz/status/317252989003915264 >> > >> > I didn't check code at first and was surprised by answer. >> > Then looking at Http Impl I first thougth it was a bug in HC4 but it's >> like >> > this everywhere. >> > >> > >> > On Fri, Mar 29, 2013 at 10:01 PM, Shmuel Krakower > > >wrote: >> > >> > > Hi, >> > > Good point, although I haven't noticed it myself. >> > > >> > > Usually on browser developers tools you will see instead of an HTTP >> > > response code, a "cache" note or something mentioning the request >> served >> > by >> > > local cache. I guess this should be the case where requests are >> served by >> > > the Cache in JMeter. >> > > The only question is if the response code of HTTP Sampler must be a >> valid >> > > HTTP numeric response code, or can simply contain "cached" string. >> > > >> > > Best, >> > > >> > > Shmuel Krakower. >> > > www.Beatsoo.org - re-use your jmeter scripts for application >> performance >> > > monitoring from worldwide locations for free. >> > > >> > > >> > > On Fri, Mar 29, 2013 at 11:52 PM, Philippe Mouawad < >> > > philippe.mouawad@gmail.com> wrote: >> > > >> > > > Hello, >> > > > I noticed looking at Http implementations this day that when using >> > Cache >> > > > Manager and if URL was cached >> > > > jmeter returned code 204. >> > > > >> > > > Looking at this code definition, it does not seem to be a good >> response >> > > no >> > > > ? >> > > > >> > > > >> > > > >> > > >> > >> ------------------------------------------------------------------------= ---------------------------------------------------------------------------= ---------------------------------------------------------------------------= ---------------------------------------------------------------------------= ---------------------------- >> > > > >> > > > * The server has fulfilled the request but does not need to return >> an >> > > > entity-body, and might want to return updated metainformation. The >> > > response >> > > > MAY include new or updated metainformation in the form of >> > entity-headers, >> > > > which if present SHOULD be associated with the requested variant. = * >> > > > * * >> > > > >> > > > * If the client is a user agent, it SHOULD NOT change its document >> view >> > > > from that which caused the request to be sent. This response is >> > primarily >> > > > intended to allow input for actions to take place without causing = a >> > > change >> > > > to the user agent's active document view, although any new or >> updated >> > > > metainformation SHOULD be applied to the document currently in the >> user >> > > > agent's active view. * >> > > > * * >> > > > >> > > > * The 204 response MUST NOT include a message-body, and thus is >> always >> > > > terminated by the first empty line after the header fields. * >> > > > >> > > > >> > > >> > >> ------------------------------------------------------------------------= ---------------------------------------------------------------------------= ---------------------------------------------------------------------------= ---------------------------------------------------------------------------= ---------------------------- >> > > > * >> > > > * >> > > > In fact as in this case no request is made to server, it is hard t= o >> say >> > > > what should be the response.* >> > > > * >> > > > -- >> > > > Cordialement. >> > > > Philippe Mouawad. >> > > > >> > > >> > >> > >> > >> > -- >> > Cordialement. >> > Philippe Mouawad. >> > >> > > > > -- > Cordialement. > Philippe Mouawad. > > > --=20 Cordialement. Philippe Mouawad. --047d7bd74a264bc2e40501dde5f7--