curl-users
Re: HTTP PATCH does (not??) send JSON data to API
Date: Tue, 2 Jun 2015 16:00:28 +0200 (CEST)
On Tue, 2 Jun 2015, Petr LĂĄzĹovskĂ˝ wrote:
> Trying to use curl.exe with PATCH method to send JSON data to API, by
> pushing data to STDIN of curl (avoid to write data to file). Got HTTP code
> 200 but ho data changes in database. Service provider inform me I am trying
> "update nothing" (sending PATCH request with no data), but I can check it.
> Anybody see any problem in my curl command construction?
Add "--trace-ascii dump.txt" to the curl command line and you'll get a full
trace stored in that file, showing you exactly what curl sent (and received).
That usually helps debugging what's going on.
-- / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2015-06-02