Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id A86DA2004F2 for ; Sat, 26 Aug 2017 15:11:25 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A6E9B165462; Sat, 26 Aug 2017 13:11:25 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id C790D165445 for ; Sat, 26 Aug 2017 15:11:24 +0200 (CEST) Received: (qmail 20249 invoked by uid 500); 26 Aug 2017 13:11:23 -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 20196 invoked by uid 99); 26 Aug 2017 13:11:23 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 Aug 2017 13:11:23 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 28912183D2D for ; Sat, 26 Aug 2017 13:11:23 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.379 X-Spam-Level: ** X-Spam-Status: No, score=2.379 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id YNdvc8s0Oh3G for ; Sat, 26 Aug 2017 13:11:21 +0000 (UTC) Received: from mail-qt0-f175.google.com (mail-qt0-f175.google.com [209.85.216.175]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 4BBCD5FDB8 for ; Sat, 26 Aug 2017 13:11:21 +0000 (UTC) Received: by mail-qt0-f175.google.com with SMTP id d15so9609844qta.4 for ; Sat, 26 Aug 2017 06:11:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=4PyIk8C12pM/MRTKI9J9kYZvgqEI0/SicN9XREkxqPI=; b=pslzM6eDwhjhrQYWjIt70noXUAmA0YUgc4T80m7SktDMTasuBxpeZZgCHtfLMKoVeX OFup6z8uOOAjqpccw2qHAXl7t1qRPDGwybGoNZ2Pj2ZOmPfuS88/5VaHj4EfesACoy9M bMzH0oEzMbjEcr0HC5W6SxiyNfgFx0Ebrbo1gXX6lZSKQpyzJPsiQUDuVOYgmKmZMQxF AoS9Smz+H6WmoUbQ31hzsEwrHwJWqtamh8UxEYef1TF/+cAzch/Np5m3ZJES5dp0g1Ch gg7k7tQAz2a1l15yB58su0C9bTxnFPEgCNsVgpdT/bRoopH3ZZabBI8W2zIcvf/INmeC 3Wvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=4PyIk8C12pM/MRTKI9J9kYZvgqEI0/SicN9XREkxqPI=; b=tsqWOPIYaL48s6lEdkOayUouy2P5L85VFQr9cTZ/JY640GBfoaWu74l4ndPG9Jxsv4 sPCM2+u9Y6+JM5W2TQjmrdRhzdSxn8ptccTB9vwnzSYwNX1s5E+cWcQUg6bPvv7OyAcY texL/Nz7vc+QTiCAHG7BEXHQdJN7c8UbdWhFteqOc8uVZngWtEHgvPpI7xQDUe5Bto8S 36hru+gbBtMFTM1Mmie0n8POxPCxpBMrfyJ6TckDiCF3CT4A7vaQz9ba4zHGSvvxBkkh 77v9bUaCBtsGi2vxy1snsPH5BugaBl443bmx26AmDrQRobwnDVJ7UUlGg3SZ5l6Rp2tf /qKA== X-Gm-Message-State: AHYfb5hcO4fKg7nj5byMYY9QIYUGd95MHbcNcDwhyyp5QeUKxGKL2sRE qMMNxEY8FEofEVl60Lo5+z5S3jyo1g== X-Received: by 10.200.36.133 with SMTP id s5mr2106821qts.276.1503753080456; Sat, 26 Aug 2017 06:11:20 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.163.1 with HTTP; Sat, 26 Aug 2017 06:11:19 -0700 (PDT) In-Reply-To: <20170825190239.B559C3A009D@svn01-us-west.apache.org> References: <20170825190239.B559C3A009D@svn01-us-west.apache.org> From: Philippe Mouawad Date: Sat, 26 Aug 2017 15:11:19 +0200 Message-ID: Subject: Re: svn commit: r1806215 - in /jmeter/trunk: src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC4Impl.java xdocs/changes.xml To: "dev@jmeter.apache.org" Content-Type: multipart/alternative; boundary="001a1141067830cbe50557a7cc58" archived-at: Sat, 26 Aug 2017 13:11:25 -0000 --001a1141067830cbe50557a7cc58 Content-Type: text/plain; charset="UTF-8" Hi Felix, Are we sure that when encoding is UTF-8 there is no need to set charset ? AFAIK, there were already issue with Multipart forms even before refactoring. Thanks Thanks On Fri, Aug 25, 2017 at 9:02 PM, wrote: > Author: fschumacher > Date: Fri Aug 25 19:02:36 2017 > New Revision: 1806215 > > URL: http://svn.apache.org/viewvc?rev=1806215&view=rev > Log: > Don't set the charset on enclosing multipart/form-data header. It > irritates some servers. > > The charset was added sometime back while refactoring to use a newer api > of http client. > See https://bz.apache.org/bugzilla/show_bug.cgi?id=56141 for more info. > > Bugzilla Id: 61384 > > > Modified: > jmeter/trunk/src/protocol/http/org/apache/jmeter/ > protocol/http/sampler/HTTPHC4Impl.java > jmeter/trunk/xdocs/changes.xml > > Modified: jmeter/trunk/src/protocol/http/org/apache/jmeter/ > protocol/http/sampler/HTTPHC4Impl.java > URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/ > http/org/apache/jmeter/protocol/http/sampler/HTTPHC4Impl.java?rev=1806215& > r1=1806214&r2=1806215&view=diff > ============================================================ > ================== > --- jmeter/trunk/src/protocol/http/org/apache/jmeter/ > protocol/http/sampler/HTTPHC4Impl.java (original) > +++ jmeter/trunk/src/protocol/http/org/apache/jmeter/ > protocol/http/sampler/HTTPHC4Impl.java Fri Aug 25 19:02:36 2017 > @@ -1242,7 +1242,7 @@ public class HTTPHC4Impl extends HTTPHCA > if(getUseMultipartForPost()) { > // If a content encoding is specified, we use that as the > // encoding of any parameter values > - Charset charset = null; > + Charset charset; > if(haveContentEncoding) { > charset = Charset.forName(contentEncoding); > } else { > @@ -1254,8 +1254,7 @@ public class HTTPHC4Impl extends HTTPHCA > getDoBrowserCompatibleMultipart(), charset, > haveContentEncoding); > } > // Write the request to our own stream > - MultipartEntityBuilder multipartEntityBuilder = > MultipartEntityBuilder.create() > - .setCharset(charset); > + MultipartEntityBuilder multipartEntityBuilder = > MultipartEntityBuilder.create(); > if(getDoBrowserCompatibleMultipart()) { > multipartEntityBuilder.setLaxMode(); > } else { > > Modified: jmeter/trunk/xdocs/changes.xml > URL: http://svn.apache.org/viewvc/jmeter/trunk/xdocs/changes. > xml?rev=1806215&r1=1806214&r2=1806215&view=diff > ============================================================ > ================== > --- jmeter/trunk/xdocs/changes.xml [utf-8] (original) > +++ jmeter/trunk/xdocs/changes.xml [utf-8] Fri Aug 25 19:02:36 2017 > @@ -167,6 +167,9 @@ Incorporated feed back about unclear doc > >

HTTP Samplers and Test Script Recorder

>
    > +
  • 61384Don't set the charset on enclosing > multipart/form-data header. It irritates some servers.
    > + The charset was added sometime back while refactoring to use a newer > api of http client. > + See 56141 for more info.
  • >
> >

Other Samplers

> > > -- Cordialement. Philippe Mouawad. --001a1141067830cbe50557a7cc58--