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

Kate Wang updated AXIS2-2265:
-----------------------------

    Description: 
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.



  was:
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 do 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.




> 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
>
> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to