I have a following curl
command that works fine on mac command line/terminal
:
curl -X POST http://build:f9280f220bf7b75396f83a0@mobile-jenkins.domain.com:8080/job/qa-trserver-git/build
--data-urlencode json='{"parameter": [{"name":"POST_RESULTS", "value":"true"}, {"name":"RUN_ID", "value":"744"}, {"name":"PLAN", "value":"SamplePlan"}]}'
How to use this curl command in php
program?
Something I can think of:
<?php
curl -X POST http://build:f9280f220bf7b75396f83a0@mobile-jenkins.domain.com:8080/job/qa-trserver-git/build
--data-urlencode json='{"parameter": [{"name":"POST_RESULTS", "value":"true"}, {"name":"RUN_ID", "value":"744"}, {"name":"PLAN", "value":"SamplePlan"}]}'
?>
An example with the input will be helpful.