You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Oleg Kalnichevski (JIRA)" <ji...@apache.org> on 2013/06/04 09:10:21 UTC
[jira] [Updated] (HTTPCORE-342) 'expect-continue' issue.
[ https://issues.apache.org/jira/browse/HTTPCORE-342?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Oleg Kalnichevski updated HTTPCORE-342:
---------------------------------------
Labels: regression (was: )
> '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ūnas Bendoraitis
> Labels: regression
> 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 <ol...@apache.org>
> 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/trunk@1412159 13f79535-47bb-0310-9956-ffa450edef68
> ----
> Modified: httpcore-nio/src/test/java/org/apache/http/nio/integration/TestHttpAsyncHandlers.java
> Modified: httpcore/src/examples/org/apache/http/examples/ElementalHttpGet.java
> Modified: httpcore/src/examples/org/apache/http/examples/ElementalHttpPost.java
> Modified: httpcore/src/main/java/org/apache/http/protocol/ExecutionContext.java
> Modified: httpcore/src/main/java/org/apache/http/protocol/HttpCoreContext.java
> Modified: httpcore/src/main/java/org/apache/http/protocol/RequestExpectContinue.java
> Modified: httpcore/src/test/java/org/apache/http/integration/TestSyncHttp.java
> Modified: httpcore/src/test/java/org/apache/http/protocol/TestStandardInterceptors.java
> For example:
> HttpClient httpclient = new DecompressingHttpClient();
> final List<NameValuePair> params = new ArrayList<NameValuePair>();
> params.add(new BasicNameValuePair("vb_login_username", "test123"));
> params.add(new BasicNameValuePair("vb_login_password", "test123"));
> HttpPost httpPost = new HttpPost("http://www.majaa.net/login.php?do=login");
> httpPost.setEntity(new UrlEncodedFormEntity(params, "UTF-8"));
> HttpResponse response = httpclient.execute(httpPost);
> System.out.println(response.getStatusLine().getStatusCode());
> This at the moment will output http status of 417 (which is not as excepted, 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 administrators
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