Skip to content

Tag: curl

PHP cURL Received HTTP code 407 from proxy after CONNECT

I have a php curl with proxy problem. Below is my code: The format of proxies in proxy.txt is ip:port:user:pass and all proxies are working. The problem is when I used $proxyipport and $proxyuserpwd in CURLOPT_PROXY and CURLOPT_USERPWD, the curl result threw the error Received HTTP code 407 from proxy after C…

cURL contains an invalid cURL option

I was upgrading from PHP 7.4 to PHP 8 and suddenly this errors appears in my cURL request: I use the following code to build the curl: The targeted file is always an php extensions. ‘buildPostFields’ returns an array of the data. Probably this errors accours because of my php upgrade to version 8,…

Extracting json string with PHP

JSON string that i received from the API Information that i wanted to extract My attempt The output: Did the JSON string that i received is in bad format? Why does it says undefined property? Appreciate any helps. thanks! Post that i’ve refer to: How do I extract data from JSON with PHP? Answer token is…

Vimeo Thumbnails for private video in PHP

I have tried every single answer on this forum and couldn’t get a proper working code. So I am posting this again. I want to get the thumbnail of private and hidden Videos from Vimeo. I also have an access token generated which I tried to use with the solutions provided for the old questions which also …

I cannot echo the first index of a PHP cURL response

I’m using this little PHP function that I wrote to make calls to my master database: On register.php I use the following to respond: My problem comes when trying to retrieve the first index of any given response. I can use var_dump($information) and will receive array(3) { [“test1”]=> str…

send post json with php (curl)

i done search tutorial for send post json with curl .. but for this value i cant find in here.. and my question how to convert to array post json in value if like this, and this my value post json i done try to php array like this but still error maybe someone can help me.. and sory for