I have a problem to read the data I sent via curl request in nodejs. With Postman everything is working properly, but when I try to send request via curl, the api return 500 internal server error and I don’t know where is the mistake. so here is my php code so now I will share with you the part
Tag: curl
PHP cURL error “security library failure.”
I’m using the following code to send an apns notification for iOS. It was working fine before but out of no where I started getting this response from cURL “security library failure.” with code 0. This issue only seems to be happening in my development environment, no matter what data is passed in. $url = “https://api.development.push.apple.com/3/device/$device_token”; $sample_alert = $headers =
Running a foreach loop within a Curl function
I need to run a foreach loop within a curl command but can’t quite get the syntax right. I’ve parsed other variables into it fine but it’s just formatting my array to fit. curl_setopt($ch, …
How to retrieve certain data in string?
Hello may i know how to retrieve data in string? Output : As you can see the output of the code is as shown above. This is my first time to encounter this kind of output because usually I get json as the output. So my question is may I know how to retrieve the RESPONSE_MESSAGE in the output or
Sorry, you are not allowed to create posts as this user using curl request php
i am using curl request to make post in wordpress site every thing were working fine from 2 years suddenly wordpress curl stop working. 1 i updated the htaccess to and try every possible solution but no luck 2 i install wp basic authentication but it does not work 3 i install jwt authentication plugin but no luck 4 i
Problems using Curl (56)
I am using AWS and Curl to send a request to a web service that connects to port 8080, I have already consumed another web service that connects to different ports and I have no problem, but with this,…
How to call .net web service using CUrl PHP?
I have .net web service which i need to call using CUrl in php. Can anybody tell me how to achieve this? Below is my code which is not working and throwing Server Error. Thanks in advance Please see below error for more information: Answer I have used nusoap libraries to call the .net webservices. Check below link: https://www.codeproject.com/Articles/140189/PHP-NuSOAP-Tutorial
Opening multiple urls with CURL – Using api with CURL – too many urls and too slow
I have a software. There is a table, there are URLs in this table. There are 100 URLs on each page. picture Then I got an API where I can pull Alexa and DA Values. I wanted to show these values …
NCDC Web Services weather data with REST and PHP
I am trying to read precipitation data from the National Climatic Data Center’s online web services with PHP, but I can’t figure out how to read it. The documentation says that it is a RESTful web …
How to pass PHP $variables in cURL array
I would like to pass some simple PHP variables (such as $name1 and $email1) to the following cURL block (PHP-Curl) CURLOPT_POSTFIELDS =>”{n”email”: “percy.jackson@gmail.com”,n”name”: “…