By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,654 Members | 1,517 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,654 IT Pros & Developers. It's quick & easy.

How to send HTTP POST Request with xml header In Java?

P: 3
I made use of this link to send an HTTP POST Request,

http://www.xyzws.com/Javafaq/how-to-use-httpurlconnection-post-data-to-web-server/139

now i need to add an xml header to my request, how can i do that?
header will look like:
<header ver="3.3.0">
<client>
<id>le</id>
<pwd>123456</pwd>
</client>
</header>
Jul 18 '12 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.