[cosmo-dev] CMP Example and Add User
Travis Vachon
travis at osafoundation.org
Tue Jun 24 10:24:41 PDT 2008
> l. I was just kinda hoping that I did not need to write out files to
> the file system and then post.
>
You don't:
echo "post body" | curl -X POST --data-binary @- http://www.example.com
will do:
POST /
<headers>
post body
the key is "--data-binary @-" which says, "use the contents of the
file I specify for the request body (@), and I'm specifying standard
input (-)
-Travis
More information about the cosmo-dev
mailing list