Skip to content
Advertisement

Tag: curl

Node js can not read the data from curl request via php

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

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 =

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

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

Advertisement