Page 1 of 1

Posting data to a REST API

Posted: Fri Jul 27, 2012 2:38 pm
by mjacobson
If I wanted to post some data to a API written in another language like PHP from a Vortex script, can I just use the <submit METHOD=POST ...> like:

<submit METHOD=POST URL=$myRestURL
idsite=$SITEID
rec="1"
url=$tURL
action_name=$title
rand=$radNum
User-Agent=$USER_AGENT
token_auth="ad8d6f41a219e404"
cdt=$tdate>

Or is there a better way of doing this in Vortex?

Posting data to a REST API

Posted: Fri Jul 27, 2012 3:07 pm
by mark
That's the way to do it.

Posting data to a REST API

Posted: Fri Jul 27, 2012 3:10 pm
by mjacobson
Thanks. It has been a few years since writing anything in Vortex.