• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Getting HTTP 404 Not Found when issuing POST using curl

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Bring out your dead! Or a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic