D_R
D_R

Reputation: 4972

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?

Upvotes: 0

Views: 224

Answers (1)

Lajos Veres
Lajos Veres

Reputation: 13725

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..." ); 

Upvotes: 1

Related Questions