to start and make use of the post option with curl.
though i do not have an example to offer, i understand that you may need to do more than 1 curl session to complete everything. one to post and one to get. 