Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Get cURL resource
- $curl = curl_init();
- // Set some options - we are passing in a useragent too here
- curl_setopt_array($curl, [
- CURLOPT_RETURNTRANSFER => 1,
- CURLOPT_URL => 'https://datatron.app:9091/plugins/restapi/v1/userservice?type=add&secret=TWvMWE8QJCmOOPkE&username=&password=&name=&email=',
- CURLOPT_POST => 1,
- CURLOPT_POSTFIELDS => [
- username => 'bobby',
- password => 'bobby123',
- name => 'bobby',
- email => 'bobby@mail.com',
- ]
- ]);
- // Send the request & save response to $resp
- $resp = curl_exec($curl);
- // Close request to clear up some resources
- curl_close($curl);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement