When I try running curl like this:
curl -i -H "Accept: application/xml" -X GET "https:///auth?a=b&c=d";
everything is fine.
but when I try this:
curl -i -H "Accept: application/xml" -X GET "https:///auth"; -d "a=b&c=d"
I get the error message documented below. I assume this is related
Hi Bjorn,
The -d argument to curl causes it to include the provided data in the body
of the request. Since you're forcing it to make a GET request, it's
generating an invalid request - GETs can't have bodies.
-Nick Johnson
On Thu, Feb 17, 2011 at 11:55 AM, bjorn wrote:
> When I try running cur
I understand the function of -d, but there are two issues here: 1. it works
differently locally than on the server, and 2. lots of APIs can and should
use GETs with bodies. Maybe the RFCs don't allow it, but sometimes the RFCs
don't represent the real world. In the real world, I may want to pass