Download a file with curl

Often we use wget but here we are going to use curl to download a file Here we download the file “konimex-neofetch-epel-7.repo” to the directory /etc/yum.repos.d/konimex-neofetch-epel-7.repo The -o is where to out put Curl help

Curl Error When updating WordPress behind firewall: Error message: cURL error 28: Connection timed out after 10001 milliseconds

When updating wordpress, this error appears: Error message: cURL error 28: Connection timed out after 10001 milliseconds Resolution: Curl the site with the private IP and not the public IP. From inside the private network each server or device is known only by it’s private IP address and is always referenced using that address. Ref: … Read more

Curl Error

[stextbox id=”warning”]Error: SSL read: error:00000000:lib(0):func(0):reason(0), errno 104[/stextbox] Getting a curl error from a php script. Try to run curl without php. ssh to the server find the script cd /var/www/vhosts/path/to/script nano script.php Find the call and execute from a command line Output: It looks like the connection is being refused by the remote server. Curl the … Read more

Testing Using Curl

Curl can be helpful in testing many things including web sites. See if curl is installed Using ssh: This will tell you if the system has curl installed. But you need to have libcurl, and the curl PHP extension to be able to use curl in PHP. To see if it’s enabled, simply do: in … Read more