Return-Path: X-Original-To: apmail-hc-dev-archive@www.apache.org Delivered-To: apmail-hc-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9705DF327 for ; Wed, 29 May 2013 16:19:57 +0000 (UTC) Received: (qmail 76346 invoked by uid 500); 29 May 2013 16:13:37 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 75176 invoked by uid 500); 29 May 2013 16:13:14 -0000 Mailing-List: contact dev-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list dev@hc.apache.org Received: (qmail 74612 invoked by uid 99); 29 May 2013 16:12:52 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 May 2013 16:12:52 +0000 Date: Wed, 29 May 2013 16:12:50 +0000 (UTC) From: "Oleg Kalnichevski (JIRA)" To: dev@hc.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (HTTPCORE-342) 'expect-continue' issue. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HTTPCORE-342?page=3Dcom.atlass= ian.jira.plugin.system.issuetabpanels:all-tabpanel ] Oleg Kalnichevski resolved HTTPCORE-342. ---------------------------------------- Resolution: Fixed Fix Version/s: 4.3-beta3 Reverted to 'expect-continue' being disabled by default. Fixed in SVN trunk. Please review / test. Oleg =20 > 'expect-continue' issue. > ------------------------ > > Key: HTTPCORE-342 > URL: https://issues.apache.org/jira/browse/HTTPCORE-342 > Project: HttpComponents HttpCore > Issue Type: Task > Affects Versions: 4.3-beta2, 4.3-beta3 > Reporter: Ar=C5=ABnas Bendoraitis > Fix For: 4.3-beta3 > > > I'm not really sure why it happens, but I manage to backtrack changes to = a single commit. > Not sure why it was reverted, but this revision now causes some problems = with some hosts: > Revision: 58760a12132862d1cc284585415a1440f2a1317b > Author: Oleg Kalnichevski > Date: 2012.11.21 17:58:58 > Message: > Reverted changes introducing 'expect-continue' context attribute > git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpcore/trun= k@1412159 13f79535-47bb-0310-9956-ffa450edef68 > ---- > Modified: httpcore-nio/src/test/java/org/apache/http/nio/integration/Test= HttpAsyncHandlers.java > Modified: httpcore/src/examples/org/apache/http/examples/ElementalHttpGet= .java > Modified: httpcore/src/examples/org/apache/http/examples/ElementalHttpPos= t.java > Modified: httpcore/src/main/java/org/apache/http/protocol/ExecutionContex= t.java > Modified: httpcore/src/main/java/org/apache/http/protocol/HttpCoreContext= .java > Modified: httpcore/src/main/java/org/apache/http/protocol/RequestExpectCo= ntinue.java > Modified: httpcore/src/test/java/org/apache/http/integration/TestSyncHttp= .java > Modified: httpcore/src/test/java/org/apache/http/protocol/TestStandardInt= erceptors.java > For example: > HttpClient httpclient =3D new DecompressingHttpClient(); > final List params =3D new ArrayList= (); > params.add(new BasicNameValuePair("vb_login_username", "test123")= ); > params.add(new BasicNameValuePair("vb_login_password", "test123")= ); > HttpPost httpPost =3D new HttpPost("http://www.majaa.net/login.ph= p?do=3Dlogin"); > httpPost.setEntity(new UrlEncodedFormEntity(params, "UTF-8")); > HttpResponse response =3D httpclient.execute(httpPost); > System.out.println(response.getStatusLine().getStatusCode()); > This at the moment will output http status of 417 (which is not as except= ed, since it does not process request normally). > If I revert that revision which mentioned above it works fine and outputs= 302 (which is what is expected). -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org For additional commands, e-mail: dev-help@hc.apache.org