Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. <?php
  2. // Get cURL resource
  3. $curl = curl_init();
  4. // Set some options - we are passing in a useragent too here
  5. curl_setopt_array($curl, [
  6. CURLOPT_RETURNTRANSFER => 1,
  7. CURLOPT_URL => 'https://datatron.app:9091/plugins/restapi/v1/userservice?type=add&secret=TWvMWE8QJCmOOPkE&username=&password=&name=&email=',
  8. CURLOPT_POST => 1,
  9. CURLOPT_POSTFIELDS => [
  10. username => 'bobby',
  11. password => 'bobby123',
  12. name => 'bobby',
  13. email => 'bobby@mail.com',
  14. ]
  15. ]);
  16. // Send the request & save response to $resp
  17. $resp = curl_exec($curl);
  18. // Close request to clear up some resources
  19. curl_close($curl);
  20. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement