Posting data to a REST API

Post Reply
mjacobson
Posts: 204
Joined: Fri Feb 08, 2002 3:35 pm

Posting data to a REST API

Post 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?
User avatar
mark
Site Admin
Posts: 5514
Joined: Tue Apr 25, 2000 6:56 pm

Posting data to a REST API

Post by mark »

That's the way to do it.
mjacobson
Posts: 204
Joined: Fri Feb 08, 2002 3:35 pm

Posting data to a REST API

Post by mjacobson »

Thanks. It has been a few years since writing anything in Vortex.
Post Reply