Re: curl fails to connect when not port 80

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




When running this same script through apache however, it works fine without
the port directive.  However, I get no results when attempting to connect to
port 8080.  Command line curl works fine too.  It's only when connecting
through apache that my script fails.

Here are some specifics about my environment:

Apache/2.2.3 (Red Hat)

libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
PHP/5.1.6

Any help/suggestions will be *greatly* appreciated!!  This is driving me
nuts!

Your host could have it blocked in the firewall.
It could be SeLinux getting in the way.

Not sure about other suggestions :)

Add a verbose call:

curl_setopt($ch, CURLOPT_VERBOSE, true);

and maybe set the error log for it to use:

curl_setopt($ch, CURLOPT_STDERR, '/path/to/file.log');

--
Postgresql & php tutorials
http://www.designmagick.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux