I'm working on a program that's making calls to a RESTful api. All of the documentation for the api is cURL commands, but I can't make cURL commands, so I need to translate them and make the request a different way. This is the example code they provide for the kind of query I want to make.
curl -u '{userEmail}:{userApiToken}' -v -X GET -H 'Content-Type: application/xml' -o 'result.xml' -d '<request><layout>1</layout><searchmode>Cany</searchmode><searchvalue>aaron</searchvalue><filtermode></filtermode><filtervalue></filtervalue><special></special><limit>100</limit><start></start><sortfield></sortfield><sortdir></sortdir></request>' https://secure.website.com/contacts `
I've been over the cURL documentation and understand all of the flags except for the -d. I get that its argument is xml of search parameters, but what does the -d mean on a GET cURL?
Thanks