[
https://issues.apache.org/jira/browse/HTTPCORE-342?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13669188#comment-13669188
]
Arūnas Bendoraitis commented on HTTPCORE-342:
---------------------------------------------
I'm using httpclient-4.3-beta2-SNAPSHOT client (I know some of those things in
sample code are depreciated, but my project at moment uses identical code),
that host still gives 417.
Never tried to enabled logging, will try to provide wire log.
> '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
>
> 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 <[email protected]>
> 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: [email protected]
For additional commands, e-mail: [email protected]