All Questions
21
questions
1
vote
0
answers
24
views
Download file from URL with redirection, completely automatic at the CLI, replacing browser operation
I have asked Download file from URL with redirection, "?" and other symbols, from the command line
curl -L did not get the correct file right away.
A couple of comments pointed to a way ...
0
votes
0
answers
416
views
bash script curl upload files to php page
I am not sure that I am posting on the correct forum. I am working with Linux Centos 7 and I write a bash script which take all files with txt extension from a directory to upload them to the server ...
0
votes
1
answer
238
views
Cannot locate "php-phalcon" package in APT, after cURL'ing the .deb file
In Debian 10, I follow the instructions here to a tee, I cURL the DEB file, then I enter apt install php-phalcon or php7.0-phalcon. Neither work! I don't know what's wrong It says:
Unable to locate ...
3
votes
2
answers
7k
views
How to install php7.2-curl on a Debian 10? It depends on libcurl3 that is not available
I need php7.2-curl. But on Debian 10 apt says that it cannot be installed due to a dependency with libcurl3. But libcurl3 cannot be installed (it gives me no reason).
Must I rollback to Debian 9.9?
...
0
votes
0
answers
2k
views
Binary Output from Curl [duplicate]
When I executed the command:
curl https://piwik.openstreetmap.org/piwik.php?idsite=1
I received a warning that binary output can mess up my terminal, which, yes it did having ignored the warning, so ...
3
votes
1
answer
527
views
PHP Curl when accessing SSL slows down connection. How to correct?
After migrating to a new server, our scripts slowed down dramatically.
Some troubleshooting showed that the slowdown occurred during Curl connections as the server was trying to load the SSL cert. ...
1
vote
1
answer
478
views
PHP missing cURL and XDebug after upgrade
I just upgraded to Ubuntu 18.04.1 LTS and went to check on my local apache2 installation by adding phpinfo() to an index file.
I do not see an entry for cURL or for XDebug.
Here's what I did:
...
0
votes
1
answer
1k
views
Can't get Curl working in Linux
I can't get curl working in Arch Linux with php7, i'm getting the following message:
Fatal error: Uncaught Error: Call to undefined function curl_init()
I have the curl package installed and php ...
1
vote
1
answer
2k
views
How do I use wget or CURL in php to grab a snapshot of a web page with an asterick * in its URL? (Wayback Machine archive.org question)
The following web page on the Wayback Machine (archive.org) has an asterick * in its URL:
https://waybackassets.bk21.net/*/https://www.nasa.gov/
Neither CURL nor wget will allow me to grab the page. I ...
-1
votes
2
answers
67
views
Shortening the WP-CLI install operation [closed]
WP-CLI is a Bash expansion that allows you to automate different operations in the popular CMS WordPress.
Given my environment setup script is already quite long (by means of lines), I've setted the ...
0
votes
0
answers
86
views
Choose default cURL version
on a CentOS 7 server the cURL version is 7.29, but there has been fixes in SMTP operation and I remember I used cURL 7.48 which works fine for me. The problem is I can't get PHP from yum to be ...
1
vote
1
answer
6k
views
How to POST 'shell output' as JSON data with Curl
I got the following command:
curl -H 'Content-Type: application/json' -X POST -d '{"host": "'$(hostname)'"}' http://sitename.com/update.php
Which works as expected, but if I try to send uptime ...
1
vote
1
answer
2k
views
php: compiling with openssl, ftp, ldap, curl support in debian gnu/linux
I'm trying to compile php 5.2.x in debian gnu/linux:
./configure --with-ldap --enable-ftp --with-apxs2 --with-mcrypt
--enable-bcmath --with-bz2 --enable-calendar --enable-dba=shared --enable-exif ...
1
vote
2
answers
7k
views
“unable to get local issuer certificate” and “tlsv1 unrecognized name”
I am having a problem with the Paypal IPN postback verification. The problem came up a month ago, I believe when Paypal updated their security standards and their certificates.
My website is running ...
3
votes
1
answer
3k
views
CURL won't connect to self
I'm having a weird issue where CURL cannot connect to its own server.
For example if I'm on server example.com
wget https://example.com/ <--- WORKS FIND
curl https://example.com gets error: 35 ...
3
votes
1
answer
3k
views
Slow DNS resolve from curl/lynx etc
I have a strange issue with DNS resolving: Root of the problem is that I get curl errors: "Error executing HTTP request: name lookup timed out". Tried to ping some sites, all resolved fine (and fast). ...
2
votes
2
answers
12k
views
Git pull error libcurl.so.3 not found
I have a php script to git pull from my github repository set up in my webservice hook urls like so:
<?php
echo shell_exec('~/git/usr/bin/git pull 2>&1');
?>
When I open this script ...
1
vote
2
answers
6k
views
How can I install php5-curl on Ubuntu 12.04 LTS (GNU/Linux 3.2.0-24-generic x86_64)
I have a working server running Ubuntu 12.04 LTS (GNU/Linux 3.2.0-24-generic x86_64), including apache and php. Now I want to add curl support for php by running this:
apt-get install php5-curl
...
1
vote
3
answers
4k
views
Curl not found (Glype)
I'm trying to install proxy software called Glype on my server. It continues to tell me that "Glype requires cURL/libcurl". I have the latest version of curl installed. Why might this be happening? ...
2
votes
1
answer
2k
views
cURL on Linux not compiled, although installed
cURL is not compiled into PHP. I'm running:
[root@vps ~]# cat /etc/issue
CentOS release 5.7 (Final)
Kernel \r on an \m
Then I execute yum install curl and yum install php-curl. Then:
[root@vps ~]...
2
votes
1
answer
3k
views
Install php_http on Arch Linux
First I installed the curl extension for PHP:
$ sudo pacman -S php-curl
and
$ grep curl /etc/php/php.ini
extension=curl.so
Then I installed the PHP PEAR
$ sudo pacman -S php-pear
Having now ...