php-curl

How to install php-curl in Ubuntu 16.04

帅比萌擦擦* 提交于 2019-11-27 17:48:38
Upgraded to Ubuntu 16.04 and facing problem after installing PHP5 . Installed PHP-5 with following: sudo add-apt-repository ppa:ondrej/php sudo apt-get update sudo apt-get upgrade sudo apt-get install php5.5 # for PHP 5.5 Trying to install php-curl but its not working. sudo apt-get install php5-curl Error: E: Unable to locate package php5-curl Govind Samrow In Ubuntu 16.04 default PHP version is 7.0, if you want to use different version then you need to install PHP package according to PHP version: PHP 7.2: sudo apt-get install php7.2-curl PHP 7.1: sudo apt-get install php7.1-curl PHP 7.0:

TLS 1.2 not working in cURL

蹲街弑〆低调 提交于 2019-11-27 03:50:47
I am having trouble curling an HTTPS url that uses TLS1.2, in my curl operation I post my login data into the website and save it in cookiefile. The error message I am getting is this error:14077438:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert internal error I have tried setting VERIFYPEER and VERIFYHOST to 0 but that does not seem to work, any suggestions? Here are the versions I am using: OpenSSL version is 0.9.8b CURL version is 7.24.0 PHP is 5.3 Here is the code: $setuplogin = curl_init(); curl_setopt ($setuploginurl, CURLOPT_URL, $url); curl_setopt ($setuploginurl, CURLOPT_SSL

How to install php-curl in Ubuntu 16.04

你离开我真会死。 提交于 2019-11-26 12:08:42
问题 Upgraded to Ubuntu 16.04 and facing problem after installing PHP5 . Installed PHP-5 with following: sudo add-apt-repository ppa:ondrej/php sudo apt-get update sudo apt-get upgrade sudo apt-get install php5.5 # for PHP 5.5 Trying to install php-curl but its not working. sudo apt-get install php5-curl Error: E: Unable to locate package php5-curl 回答1: In Ubuntu 16.04 default PHP version is 7.0, if you want to use different version then you need to install PHP package according to PHP version:

How to use CURL via a proxy?

不想你离开。 提交于 2019-11-26 11:34:35
I am looking to set curl to use a proxy server. The url is provided by an html form, which has not been a problem. Without the proxy it works fine. I have found code on this and other sites, but they do not work. Any help in finding the correct solution would be much appreciated. I feel that the bellow are close, but that I am missing something. Thank You. The bellow code I adapted from here http://www.webmasterworld.com/forum88/10572.htm but it returns an error message about a missing T_VARIABLE on line 12. <? $url = '$_POST[1]'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,$url); curl

TLS 1.2 not working in cURL

别说谁变了你拦得住时间么 提交于 2019-11-26 08:16:18
问题 I am having trouble curling an HTTPS url that uses TLS1.2, in my curl operation I post my login data into the website and save it in cookiefile. The error message I am getting is this error:14077438:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert internal error I have tried setting VERIFYPEER and VERIFYHOST to 0 but that does not seem to work, any suggestions? Here are the versions I am using: OpenSSL version is 0.9.8b CURL version is 7.24.0 PHP is 5.3 Here is the code: $setuplogin = curl

How to use CURL via a proxy?

穿精又带淫゛_ 提交于 2019-11-26 02:17:03
问题 I am looking to set curl to use a proxy server. The url is provided by an html form, which has not been a problem. Without the proxy it works fine. I have found code on this and other sites, but they do not work. Any help in finding the correct solution would be much appreciated. I feel that the bellow are close, but that I am missing something. Thank You. The bellow code I adapted from here http://www.webmasterworld.com/forum88/10572.htm but it returns an error message about a missing T