|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-06-11 17:42 UTC] mwalker at kydance dot net
When PHP is compiled as CGI (non-apache module), and you attempt to make an SSL connection over cURL, it returns null. If you connect to a non-SSL address, it works. My cURL version: libcurl 7.9.5 (OpenSSL 0.9.6) My configure line: './configure' 'i386-redhat-linux' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--prefix=/usr' '--with-config-file-path=/etc' '--disable-debug' '--enable-pic' '--disable-rpath' '--enable-inline-optimization' '--with-apxs=/usr/sbin/apxs' '--with-bz2' '--with-db3' '--with-exec-dir=/usr/bin' '--with-gd' '--with-gdbm' '--with-gettext' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png' '--with-regex=system' '--with-ttf' '--with-zlib' '--with-layout=GNU' '--enable-bcmath' '--enable-debugger' '--enable-ftp' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-track-vars' '--enable-yp' '--enable-wddx' '--with-mysql' '--without-unixODBC' '--without-oracle' '--without-oci8' '--with-pspell' '--with-xml' '--with-curl' '--enable-trans-id' PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 04:00:01 2025 UTC |
No, we haven't upgraded to 4.2x yet. Here's the script for you: <? $curlsession = curl_init("https://www.mthmarketing.com/index.html"); curl_setopt($curlsession, CURLOPT_RETURNTRANSFER, 1); $return_string = curl_exec($curlsession); curl_close($curlsession); var_dump($curlsession); ?>Bug in that script I just posted. Corrected version: <? $curlsession = curl_init("https://www.mthmarketing.com/index.html"); curl_setopt($curlsession, CURLOPT_RETURNTRANSFER, 1); $return_string = curl_exec($curlsession); curl_close($curlsession); var_dump($return_string); ?>