Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to send

 
surendar prabu
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
when i send a HTTP request to my servlet, can i send my request parameters as XML data instead of HTML Form parameters??? In both the cases the parameters are going to be the same...

Please help me out..
 
Darren Edwards
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HTTP transfers data using parameters you cannot do anything to alter that. What you can do is pass XML as a parameter if that's what you need.


(in real life that parameter would be encoded, but I've not shown that for clarity)
 
ankur rathi
Ranch Hand
Posts: 3830
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by surendar prabu:
when i send a HTTP request to my servlet, can i send my request parameters as XML data instead of HTML Form parameters??? In both the cases the parameters are going to be the same...

Please help me out..


I think, you can achieve this with the help of hidden fields.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic