[gameprogrammer] Re: POST in JSON format?

  • From: Matthew Weigel <unique@xxxxxxxxxxx>
  • To: <gameprogrammer@xxxxxxxxxxxxx>
  • Date: Thu, 24 Jan 2013 08:17:37 -0600

On 24.01.2013 00:41, Kevin Jenkins wrote:

Sorry for not being clear. I'm OK on the server side because I'm writing it in Java and am using json-lib to read the body of the post. But for testing I want to write a webpage that can do a POST from an HTML form

I find it easier to test from the command line using curl. For example:

curl -X POST -H "Content-Type: application/json" -d @test.json <URL>

--
 Matthew Weigel
 hacker
 unique & idempot . ent


---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html


Other related posts: