jira-importer opened a new issue, #957:
URL: https://github.com/apache/httpcomponents-core/issues/957

   **[Arūnas 
Bendoraitis](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=freddy1)**
 opened 
**[HTTPCORE-342](https://issues.apache.org/jira/browse/HTTPCORE-342?redirect=false)**
 and commented
   
   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).
   
   
   ---
   
   **Affects:** 4.3-beta2, 4.3
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to