PHP: fetch an URL via SSL
Orvid King
blah38621 at gmail.com
Wed Apr 2 13:42:25 PDT 2014
On Wed, 02 Apr 2014 15:32:24 -0500, Brad Anderson <eco at gnuk.net> wrote:
> On Wednesday, 2 April 2014 at 20:28:07 UTC, Andrei Alexandrescu wrote:
>> Brad Roberts is trying to switch bugzilla to use https, which breaks
>> https://github.com/D-Programming-Language/dlang.org/blob/master/fetch-issue-cnt.php.
>> He's not a PHP guy so he wouldn't know how to fix it. Could I trust one
>> of our contributors to take on this task?
>>
>> Thanks,
>>
>> Andrei
>
> The code is fine as is. The problem is PHP needs to be built with SSL
> support and the php installation on dlang.org wasn't. The only person
> who can fix this is Jan, I believe.
>
> The error message it gave until I switched it back to http was:
>
> "Unable to find the wrapper "https" - did you forget to enable it when
> you configured PHP?"
Specifically, you need to enable the OpenSSL plugin, if you're using a
copy of php installed from a package manager, it is typically in a
separate package, and, depending on the distro, will enable itself when
you install it. Once that is enabled, the code will work perfectly.
More information about the Digitalmars-d
mailing list