You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Nandana Mihindukulasooriya (JIRA)" <ji...@apache.org> on 2008/08/11 17:35:44 UTC

[jira] Resolved: (AXIS2-2265) Could not set "Expect 100-continue" HTTP header

     [ https://issues.apache.org/jira/browse/AXIS2-2265?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nandana Mihindukulasooriya resolved AXIS2-2265.
-----------------------------------------------

    Resolution: Fixed

Fixed in revision: 684778. Now this can be done using a HttpMethodParams instance which can be passed to the Commons HttpClient using the code given below.

ServiceClient sc = ....
HttpMethodParams params = new HttpMethodParams();
params.setBooleanParameter(HttpMethodParams.USE_EXPECT_CONTINUE, true);
sc.getOptions().setProperty(org.apache.axis2.transport.http.HTTPConstants.HTTP_METHOD_PARAMS, params);

regards,
nandana 

> Could not set "Expect 100-continue" HTTP header 
> ------------------------------------------------
>
>                 Key: AXIS2-2265
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2265
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.1.1
>            Reporter: Kate Wang
>            Assignee: Saminda Wishwajith Abeyruwan
>
> I need to set "Expect 100-continue" http header, but I could not find a way to do it in axis2. I tried to add it as a custom header, but it would not work. After I examine the code more carefully, it seems to me that it is not possible to add it.
> In org.apache.axis2.transport.http.SOAPOverHTTPSender.java, at line 105,  if HTTP version is 1.1, this header would be set. But in org.apche.commons.httpclient.methods.ExpectContinueMethod.java's addRequestHeaders() method, this header would be removed because HttpMethodParam.USE_EXPECT_CONTINUE is never set. I searched through axis2 source code and didn't find a way to set this parameter.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org