Skip to content

Tag: curl

What is correct example to use Multi-cURL?

What is correct example (up-to-date approach) use CURL-MULTI? I use the below code, but many times, it fails to get the content (returns empty result, and neither I have experience how to retrieve the correct repsonse/error): and executing: Is there something, that can be changed, to have better results? upda…

Making Curl to PHP request json rpc

I am trying to connect to Electroneum wallet rpc. The example Curl request is:- Which works perfectly fine on machine side. But when I try PHP like this It returns { “error”: { “code”: -32601, “message”: “Method not found” }, “id”: “0”, &…

Upload file using Curl and receive them in Laravel method

I have been trying to upload file to using curl using laravel app end point. Below code is on separate server. And receiving end in laravel app hosted on different server. It returns me empty response. I am able to verify curl request using headers. Any suggestion will be helpful. Thanks. Answer You can try s…

Request Entity Too Large PHP CURL

I have made a form to upload 2 images and send them to the SwiftDil API. I’m not sure where it all goes wrong, but at the end I get an error saying: 413 Request Entity Too Large. First I save the file on my server in an directory. Then I use CURL and curl_file_create() to send the image from