Skip to content

Instantly share code, notes, and snippets.

@waynew
Created August 3, 2016 18:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save waynew/d49e595570fe4f0a8724fcae5a2c4ebc to your computer and use it in GitHub Desktop.
Save waynew/d49e595570fe4f0a8724fcae5a2c4ebc to your computer and use it in GitHub Desktop.
POST /form HTTP/1.1
Host: localhost:8889
User-Agent: curl/7.49.1
Accept: */*
Content-Length: 207
Content-Type: application/x-www-form-urlencode
test=test&args=%5B%27http%3A%2F%2Fexample.com%2Fapi%27%2C+%27POST%27%2C+%27Content-Type%3A+application%2Fjson%5CnContent-Length%3A+32%27%2C+%27%7B%22id%22%3A+%22Cleese%22%2C+%22name%22%3A+%22John%22%7D%27%5D
-- Or
POST /json HTTP/1.1
Host: localhost:8889
User-Agent: curl/7.49.1
Accept: */*
Content-Type:application/json
Content-Length: 207
{"test": "test", "args": ["http://example.com/api", "POST", "Content-Type: application/json\nContent-Length: 32", "{\"id\": \"Cleese\", \"name\": \"John\"}"]}
@waynew
Copy link
Author

waynew commented Aug 3, 2016

I'd expect them to be posting something like this:

POST /json HTTP/1.1
Host: localhost:8889
User-Agent: curl/7.49.1
Accept: */*
Content-Type:application/json
Content-Length: 32

{"id": "Cleese", "name": "John"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment