I have a servlet that reads a JSON string from a POST. A third (PHP) party application posts a JSON string to the servlet which adds the data to a database, but something is going wrong.
I want to do some testing, and I want to have a simple servlet (or just a main java class) that posts a JSON string to the servlet. But I'm not really finding how to do this.
Any idea how to do this? Any tips where to start?
Thanks very much for any help!