@Norrad Are you looking for anything in particular? I only ask because Sudonix uses a number of custom functions which I wrote, but all are available on GitHub and fully supported here.
CURL GET
Solved
General
-
hello I would like to send data to a server via get via curl and have the response output to me.
No problem by post, but it doesn’t really work with get. Does somebody has any idea?
// My url $url = "https://mydomain/index.php?packageID=".$response['packageID']."&weight=".$response['weight']."&length=".$response['length']."&width=".$response['width']."&height=".$response['height'].""; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HEADER, true); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $data = curl_exec($ch); curl_close($ch); print($data);
I would have to get this back as a response
{"packageId":"RT000000001AT","sortPath":""}
-
is working
$curl = curl_init($url); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); //for debug only! curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); $resp = curl_exec($curl); curl_close($curl); print($resp);
-
-
Did this solution help you?
-
-
-
-
Nodebb design
Solved General -
-
Sidebar Widget is no longer on the side!
Moved Solved General -
-