Forums Register Login

POSt method

+Pie Number of slices to send: Send
hi all,
i'm developing a REST web service with netbeans. My service gets data from a MYSQL database. I don't understand how to set a method POST to insert a new tuple in the database.
oumaya
+Pie Number of slices to send: Send
Hi!
Do you mean that you do not know how to send a POST request to your RESTful web service?
The HTTP POST is to be set in the client when sending the request. The exact procedure for setting the request method depends on which client library you use. For instance, you can use Apache HttpClient, Jetty HTTP client or the HttpURLConnection in the Java SE API.
In the case of HttpURLConnection, here is an example:

Best wishes!
+Pie Number of slices to send: Send
thank you,
i'm searching for a complete application to follow step by step.
+Pie Number of slices to send: Send
I believe the Jersey toolkit download includes examples.

Also the jersey site has lots of documentation.

Bill
Trust God, but always tether your camel... to this tiny ad.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1542 times.
Similar Threads
Why only doGet() or doPost() & not service
service() method
Unable to direct to page after login
service() method
regarding servlet service method
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 02:39:01.