Guest User

Untitled

a guest
Apr 21st, 2018
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. <?php
  2.  
  3. /**
  4. * Created by PhpStorm.
  5. * User: PauleBert
  6. * Date: 21.04.18
  7. * Time: 19:19
  8. */
  9. class HttpPOSTRequest
  10. {
  11. function makeHttpRequest($receiver, $amount){
  12. $postData = array(
  13. 'method' => "",
  14. 'params' => array($receiver,$amount,'Kommentar', "nix"),
  15. 'id' => 'Keine Ahnung Timestamp???',
  16. 'jsronrpc' => 1.0,
  17. 'content' => 'With<b>exciting</b>content...'
  18.  
  19. );
  20. $context = stream_context_create(array(
  21. 'http' => array(
  22. 'method' => 'POST',
  23. 'header' => "Content-Type: application/jsonr\r\n",
  24. 'content' => json_encode($postData)
  25. )
  26. ));
  27.  
  28. }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment