Antonio Carlos Ribeiro | 3 Apr 2013 18:58
Picon

CURL_OPENSSL_3 not found

Guys,


I'm trying to complile curl (7.23.1 and 7.29.0) with ares and, after make install, apache+php dies saying: 

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/curl.so' - /usr/local/lib/libcurl.so.4: version `CURL_OPENSSL_3' not found (required by /usr/lib/php5/20090626/curl.so) in Unknown on line 0

Here is what I'm doing to compile:

sudo make clean
sudo ./configure --with-ssl --enable-ares
sudo make
sudo make install

Any lights?

Thanks in advance,

AC
antoniocarlos <at> cys.com.br

(+55) 21-8088-2233 (celular TIM)
(+55) 21-9644-4722 (celular VIVO)
(+55) 21-2556-3164 (fixo residencial)

skype: antoniocarlosribeiro

_______________

I must say I find television very educational. The minute somebody turns it on, I go to the library and read a good book.
(Devo dizer que acho televisão muito educativo. Quando alguém a liga, vou à biblioteca e leio um bom livro.)

(Groucho Marx)


_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Henry Steinberg | 10 Mar 2013 19:54
Favicon

Fw: message

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Denis K | 5 Mar 2013 16:27
Picon

php script retrive url

Hy. I need help to resolve this task. How dase tracking that doing php script runing from cli uses cron. And if have no answer from server restart script from url adge. 


_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Phil | 19 Feb 2013 15:04
Picon
Favicon

Weird cURL operation timed out error with HTTP POST

cURL-Version: 7.18.2
PHP Version: 5.3.17 (Suhosin Patch 0.9.10)

I'm getting a weird timeout when trying to use cURL to post to a server. The http_code of curl_getinfo() is 0.
"Operation timed out after 5000 milliseconds with 0 bytes received"

It does not depend on whether using HTTP or HTTPS.
The weird thing is: when omitting the content-length header, it works fine!
On another server with PHP 5.3.3-7 and cURL 7.21.0, everything works fine.

I attach these two files. Maybe anybody can confirm this issue?
Or does anybody have an idea what I'm doing wrong?
Thanks in advance. Phil

curltest_data.php
<?php
header('Content-type: application/json');
?>
{"ABC":"DEF"}
end curltest_data.php

curltest.php
<?php
$server = ''; // INSERT FULL URL OF curltest_data.php

$curlHandle = curl_init();

$str = json_encode(array());
$len = mb_strlen($str);
$headers = array('Content-type: application/json', 'Content-length: ' . $len); // WHEN OMITTING THIS
CONTENT-LENGHT HEADER, IT WORKS FINE

curl_setopt($curlHandle,CURLOPT_HTTPGET,FALSE); 
curl_setopt($curlHandle,CURLOPT_POST,TRUE); 
curl_setopt($curlHandle,CURLOPT_POSTFIELDS, $str);
curl_setopt($curlHandle,CURLOPT_HEADER,TRUE);
curl_setopt($curlHandle,CURLOPT_NOBODY,FALSE);
curl_setopt($curlHandle,CURLOPT_TIMEOUT,5);
curl_setopt($curlHandle,CURLOPT_USERAGENT,'CURL');
curl_setopt($curlHandle,CURLOPT_URL,$server);
curl_setopt($curlHandle,CURLOPT_VERBOSE,TRUE);
curl_setopt($curlHandle,CURLOPT_SSL_VERIFYPEER,0);
curl_setopt($curlHandle,CURLOPT_SSL_VERIFYHOST,0);
curl_setopt($curlHandle,CURLOPT_RETURNTRANSFER,TRUE);
curl_setopt($curlHandle,CURLOPT_HTTPHEADER,$headers);

$responseContentsStr= curl_exec($curlHandle);
$responseContentsArr= explode("\r\n\r\n", $responseContentsStr);
echo 'DATA: ' . $str;
echo '<br />DATA LEN: ' . $len;
echo '<br />HEADERS: ';
print_r($headers);
echo '<br />ERROR: ' . curl_error($curlHandle);
echo '<br />';

$tmp = curl_getinfo($curlHandle);
print_r($tmp);
curl_close($curlHandle);

echo '<br />RESPONSE:<br />';

print_r($responseContentsArr);

phpinfo();
?>
end curltest.php

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php

Picon

replace code curl to libcurl

xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

How to replace this command

«curl --user abc:password --digest \http://172.1.1.1/KbrInterface/system/Main.aspx?Method=List »

code on  perl or php with libcurl?

 

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
hostinvest@yahoo.ca | 17 Feb 2013 18:20
Picon
Favicon

(unknown)

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Picon

migrate from curl to libcurl

Now use curl

curl --user abc:password --digest \"http://172.1.1.1/KbrInterface/system/Main.aspx?Method=List"

How to replace this command code on  perl or php with libcurl?

 

С уважением,

руководитель группы

системного администрирования и телекоммуникаций

Филиала №5440 ВТБ24

Левченко Кирилл Сергеевич

т. (383)325-23-10, 3-2750

 

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Chris Campbell | 13 Feb 2013 03:36
Picon

CA Bundle issues

Hi guys,

 

I am connecting to paypal using curl and am getting the below error message:

 

Got error setting certificate verify locations:

  CAfile: D:\inetpub\wwwroot\WSITportal\cacert.crt

  CApath: none

when processing IPN data

 

I have given full control to everyone and it is still giving me this error message, and the file does exists at that path specified so im not too sure what else could be the problem,  any ideas on what else could be causing the issue?

 

Regards,

 

Chris Campbell

 

 

Email:

chrisc <at> winningwa.com.au

 

 

 

 

This email is confidential. If you are not the intended recipient, you must not disclose or use the information contained in it. If you have received this email in error, please notify us immediately by return email and delete the email and any attachments. Any personal views or opinions expressed by the writer may not necessarily reflect the views or opinions of Winning Solutions IT Services.

 

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
humen1 | 27 Dec 2012 11:17
Picon

Re: Q: about the server ip

gethostbyname("example.com"); 《《 workd fine !!

于 2012/12/27 17:36, Jan Fedemo 写道:
Thank you very much for your answer, now I know how to solve the problem, I greet the Polish.


2012/12/27 shiplu <shiplu.net <at> gmail.com>
If you want to get the IP of the client who requested your php page use $_SERVER['REMOTE_ADDR'].

To get the IP of the server you are sending curl request use gethostbyname() function as gethostbyname("example.com");




On Thu, Dec 27, 2012 at 11:04 AM, seven <humen1 <at> gmail.com> wrote:
how can i get the remote server ip address??

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php




--
Shiplu.Mokadd.im
ImgSign.com | A dynamic signature machine
Innovation distinguishes between follower and leader

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php




_______________________________________________ http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
seven | 27 Dec 2012 06:04
Picon

Q: about the server ip

how can i get the remote server ip address??
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Onur NEŞVAT | 19 Dec 2012 14:42
Picon

curl and ssl

Hi everyone,

I want to connect a API from https protocol. But the error is Unknown SSL protocol error in connection to emea.copy-webservices.travelport.com:443

The code is : 
$TARGETBRANCH = 'xxx';
$CREDENTIALS = 'Universal API/uAPI-774137105:emfdjHsZAjAjTffhhKCS3R6HP';
$message = <<<EOM
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/
<soapenv:Header/>
   <soapenv:Body>
<air:AvailabilitySearchReq xmlns:air="http://www.travelport.com/schema/air_v16_0
AuthorizedBy="Test" TargetBranch="$TARGETBRANCH">
<air:SearchAirLeg>
<air:SearchOrigin>
                <com:Airport Code="LHR" />
</air:SearchOrigin>
<air:SearchDestination>
                <com:Airport Code="JFK" />
</air:SearchDestination>
<air:SearchDepTime PreferredTime="2011-11-08" />
</air:SearchAirLeg>
</air:AvailabilitySearchReq>
</soapenv:Body>
</soapenv:Envelope>
EOM;
$auth = base64_encode("$CREDENTIALS");
$header = array(
    "Content-Type: text/xml;charset=UTF-8",    "Accept: gzip,deflate",
"Cache-Control: no-cache",
    "Pragma: no-cache",
    "SOAPAction: \"\"",
    "Authorization: Basic $auth",
"Content-length: ".strlen($message),
);
curl_setopt($soap_do, CURLOPT_CONNECTTIMEOUT, 300);
curl_setopt($soap_do, CURLOPT_TIMEOUT,        300);
curl_setopt($soap_do, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($soap_do, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($soap_do, CURLOPT_POST, true );
curl_setopt($soap_do, CURLOPT_POSTFIELDS,     $message);
curl_setopt($soap_do, CURLOPT_HTTPHEADER,    $header);
echo curl_exec($soap_do);  
echo curl_error($soap_do);



Thank You.
--
Onur NEŞVAT


_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php

Gmane