You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Arun kumar Dubagunta (JIRA)" <ji...@apache.org> on 2006/11/22 20:06:03 UTC
[jira] Created: (HTTPCLIENT-608) Way POST an XML to using
PostMethod setRequestBody() method
Way POST an XML to using PostMethod setRequestBody() method
-----------------------------------------------------------
Key: HTTPCLIENT-608
URL: http://issues.apache.org/jira/browse/HTTPCLIENT-608
Project: HttpComponents HttpClient
Issue Type: Wish
Environment: Windows
Reporter: Arun kumar Dubagunta
Priority: Critical
Documentation says postMethod.setRequestBody(String s) is depricated and suggests to use the setRequestBody method with NameValuePair array.
I have a requirement where I need to post a multy level XML to a an URL.
What is the way to convert an XML to NameValuePair[] array ?
Is there any other solution through which one can POST an XML string to an URL using httpclient.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org
[jira] Updated: (HTTPCLIENT-608) How to POST an XML using
PostMethod setRequestBody()
Posted by "Ortwin Glück (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HTTPCLIENT-608?page=all ]
Ortwin Glück updated HTTPCLIENT-608:
------------------------------------
Component/s: Documentation
Summary: How to POST an XML using PostMethod setRequestBody() (was: Way POST an XML to using PostMethod setRequestBody() method)
Description:
Documentation says postMethod.setRequestBody(String s) is depricated and suggests to use the setRequestBody method with NameValuePair array.
I have a requirement where I need to post a multy level XML to a an URL.
What is the way to convert an XML to NameValuePair[] array ?
Is there any other solution through which one can POST an XML string to an URL using httpclient.
was:
Documentation says postMethod.setRequestBody(String s) is depricated and suggests to use the setRequestBody method with NameValuePair array.
I have a requirement where I need to post a multy level XML to a an URL.
What is the way to convert an XML to NameValuePair[] array ?
Is there any other solution through which one can POST an XML string to an URL using httpclient.
Priority: Trivial (was: Critical)
> How to POST an XML using PostMethod setRequestBody()
> ----------------------------------------------------
>
> Key: HTTPCLIENT-608
> URL: http://issues.apache.org/jira/browse/HTTPCLIENT-608
> Project: HttpComponents HttpClient
> Issue Type: Wish
> Components: Documentation
> Environment: Windows
> Reporter: Arun kumar Dubagunta
> Priority: Trivial
>
> Documentation says postMethod.setRequestBody(String s) is depricated and suggests to use the setRequestBody method with NameValuePair array.
> I have a requirement where I need to post a multy level XML to a an URL.
> What is the way to convert an XML to NameValuePair[] array ?
> Is there any other solution through which one can POST an XML string to an URL using httpclient.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org
[jira] Resolved: (HTTPCLIENT-608) How to POST an XML using
PostMethod setRequestBody()
Posted by "Ortwin Glück (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HTTPCLIENT-608?page=all ]
Ortwin Glück resolved HTTPCLIENT-608.
-------------------------------------
Resolution: Invalid
Not a bug. Please use the mailing lists to get support.
The API doc says you should use setRequestEntity(RequestEntity). Please see the examples
http://svn.apache.org/viewvc/jakarta/commons/proper/httpclient/trunk/src/examples/
> How to POST an XML using PostMethod setRequestBody()
> ----------------------------------------------------
>
> Key: HTTPCLIENT-608
> URL: http://issues.apache.org/jira/browse/HTTPCLIENT-608
> Project: HttpComponents HttpClient
> Issue Type: Wish
> Components: Documentation
> Environment: Windows
> Reporter: Arun kumar Dubagunta
> Priority: Trivial
>
> Documentation says postMethod.setRequestBody(String s) is depricated and suggests to use the setRequestBody method with NameValuePair array.
> I have a requirement where I need to post a multy level XML to a an URL.
> What is the way to convert an XML to NameValuePair[] array ?
> Is there any other solution through which one can POST an XML string to an URL using httpclient.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org