Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Created by PhpStorm.
- * User: PauleBert
- * Date: 21.04.18
- * Time: 19:19
- */
- class HttpPOSTRequest
- {
- function makeHttpRequest($receiver, $amount){
- $postData = array(
- 'method' => "",
- 'params' => array($receiver,$amount,'Kommentar', "nix"),
- 'id' => 'Keine Ahnung Timestamp???',
- 'jsronrpc' => 1.0,
- 'content' => 'With<b>exciting</b>content...'
- );
- $context = stream_context_create(array(
- 'http' => array(
- 'method' => 'POST',
- 'header' => "Content-Type: application/jsonr\r\n",
- 'content' => json_encode($postData)
- )
- ));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement