This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes Getting HTTP 404 Not Found when issuing POST using curl Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Getting HTTP 404 Not Found when issuing POST using curl" Watch "Getting HTTP 404 Not Found when issuing POST using curl" New topic
Author

Getting HTTP 404 Not Found when issuing POST using curl

Jack Rooney
Greenhorn

Joined: Dec 04, 2012
Posts: 14
I am trying to pass a JSON string to a POST method via a curl command. However, i am receiving a HTTP 1.1 404 Not Found error. I am trying to create a simple web service which will have the JSON string passed to it to populate a mysql db.

Here is my DAO class which is used to do the GETS and the POSTS.


My POJO


My Person Resource class for my annotations:


When i issue the GET curl command it works fine and It returns all the values in the person table. However, if I issue a POST curl command I get the following error :


Kindly let me know where I am going wrong. Thanks for your time and help.

Regards,
Jack
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Getting HTTP 404 Not Found when issuing POST using curl
 
Similar Threads
Adding code to return an ArrayList of objects
how to use Spring with LDAP
Send PUT to different RESTful webservice running on the same local Tomcat?
How do display the contents of List<>
ArrayList is Picking Up Last Item During Iteration.