Search code examples
phpcurlfile-get-contentsphp-stream-wrappers

Unable to find what kind of CURL Post Request


I've recieved the following data which I need to post to server enter image description here

and I cant find out how exactly I need to do it in PHP. I need to send numbers, but I cant see any parameter thier asking me to send it from. any ideas how I could send this data?


Solution

  • AFAIK you need this:

    $postdata = file_get_contents("php://input");
    

    Details: http://php.net/manual/en/wrappers.php.php

    Or maybe the other way:

    RAW POST using cURL in PHP

    (I am bit lost in your question.)

    The main idea there:

    curl_setopt($ch, CURLOPT_POSTFIELDS,     "numbers\nnumbers\n..." );