I work remotely and can access internal servers via VPN. When my VPN connection is established, I can reach my webserver via curl: curl http://sub.mydomain.com I can also reach the webserver in a …
Tag: curl
How to get 3 latest videos from youtube channel?
I know there are too many similar question like in my title, but I have problem that prevents me to make it works. I tested with three accounts and all of them in one day exceeded “request quota”. I …
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
Bit.ly API call hitting original URL before/after creating short url
I’m generating Bit.ly short url with v3 api. In original URL I have some DB action after hitting it. But when I generates the bit.ly url, it automatically hit the original URL. Check my below code …
How to read data from a webpage in two instances (objects)?
I’m working on this project:
Corrupted image on auto download using url with curl in php
I want to download images from my server without clicking anything – when my php file executes it will download automatically, but the problem is the file is corrupt. However, when I paste the url …
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