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 CONNECT. However, when I replaced those variables with actual
Tag: curl
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, but I cannot find any hints
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 in the accessTokenResponse object,
jwt token not found when i pass in username and password in curl
I want to use jwt token in my symfony project. But i have a problem because when i use: curl.exe -X POST -H “Content-Type: application/json” http://localhost:81/api/login_check -d ‘{“username”: “f.djawid@outlook.com”,”password”:”000000″}’ I get : {“code”:401,”message”:”JWT Token not found”} This is my security.yml: As you can see i use the lexikJWTAthenticationBundle. I made a private key and public key with ssl. I use
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 didn’t work. I
Can an XMLHTTPRequest capture form data, and be sent to a PHP cURL request to be posted?
I have a javascript file that captures form input, makes an XMLHTTP POST request with the input, and handles errors. I am currently POSTing to a separate PHP file, as the request requires sensitive API data and needs encoding. From the PHP file, I then send a cURL request to post the form input to the remote URL. I want
“error”:”InvalidRegistration” while sending notification from PHP
Trying the mentioned code with registeration_ids and to parameter and both are not working. Help me to solve the same. Every time it is giving this error of multi cast id and InvalidRegistration. Getting this error: {“multicast_id”:8367359766XXXXXXXXX,”success”:0,”failure”:1,”canonical_ids”:0,”results”:[{“error”:”InvalidRegistration”}]} Answer Invalid Registrations usually have one of the following reasons: The registration token/device token is invalid The client app has actively unregistered with
Somehow the API is not getting my parameters sent via cURL, how could I get this working?
I have the following cURL function: All that I’m getting as a response is that the email is missing. I’ve read the documentation, all they have about this specific requisition is: Definition: GET https://api.leaddyno.com/v1/affiliates/by_email Curl: That’s a dummy private key, of course. I would appreciate any help. Answer This: is not the sort of array it’s expecting. is likely what
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”]=> string(6) “value1” [“test2”]=> string(6) “value2” [“test3”]=> string(6) “value3” }. However, when I
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