Skip to content
Advertisement

Tag: curl

PHP Curl – Received HTTP/0.9 when not allowed

I stumbled over a weird behavior when I try to send a post HTTP/2.0 request to apples push service: The exception is thrown with the Message: Curl failed: Received HTTP/0.9 when not allowed | 0 I explicitly told curl to use HTTP/2.0 on the second line of the code snipped above. Does anyone have any idea what that error message

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? update: I’ve found this repository also mentions the lack of documentation

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”, “jsonrpc”: “2.0” }. I don’t know why it’s not working, maybe due to –digest. Help needed Answer You

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 something like this on the

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

Advertisement