Forums Register Login

Need Help with HttpPut

+Pie Number of slices to send: Send
Here's my code which works


But I want to set the query params like below and it not working. Parameters are going to the servlet. Please help




Also how do I send an xml in request body for the same PUT request.

Thanks for the help!!
+Pie Number of slices to send: Send
What does "is not working" mean? What happens, and how is that different from what you were expecting?

You would send the XML as another named parameter.
+Pie Number of slices to send: Send
Actually the parameters are null in the servlet when I use the below code

Any help..
+Pie Number of slices to send: Send
If this was my problem I would use TCPMON or SOAPui on the client side to see exactly what your client request contains.

Bill
+Pie Number of slices to send: Send
Thanks Willaim. Is this the expected behavior of HttpPut API to not send the parameters using BasicNamevaluePair ..?
+Pie Number of slices to send: Send
 

Hrithik khurana wrote:Thanks Willaim. Is this the expected behavior of HttpPut API to not send the parameters using BasicNamevaluePair ..?



I have never used HttpPut, why ask me - what does the published API say?

Have you actually tried my suggestion to look at what is being sent?

Bill
+Pie Number of slices to send: Send
Yes Bill, I have tried to check the param values at the client side and found them to be null.
+Pie Number of slices to send: Send
The API for version 4.3 here say that this constructor for DefaultHttpClient is deprecated.

Which version of the toolkit are you using?

Bill


On top of spaghetti all covered in cheese, there was this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1063 times.
Similar Threads
Problem in receiving data in servlet from android client?
Login to web server with HttpClient
getParameter in jsp file sent by HttpClient
Sending a jason object via Post
Android and JSP
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 09:03:05.