Page MenuHomePhabricator

MW pure-php http client fails mysteriously
Closed, DeclinedPublic

Description

Author: mhershberger

Description:
While testing my Bz client with Sumana, I discovered that the code doesn't work without the curl extension installed. Must investigate why the pure-php version doesn't on php 5.3.3


Version: unspecified
Severity: normal

Details

Reference
bz29406

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:34 PM
bzimport set Reference to bz29406.
bzimport added a subscriber: Unknown Object (MLST).

First check if you're encountering bug 29231 on a version or branch before it was fixed. (https was accidentally disabled)

Adding Sumana as cc so she can try to reproduce this. To repro, uninstall php-curl, svn up your mediawiki install and try again. If it works, close this bug and let us know what happened.

btw, I just double checked I could GET a bugzilla page (this one specificly) using MW's php http request thingy

From eval.php I did
Http::$httpEngine = 'php';
echo Http::get('https://bugzilla.wikimedia.org/show_bug.cgi?id=29406');

Anyways, I can confirm that that worked correctly. (I'm not sure what exactly you were doing, so that could be totally irrelevant to your issue).

Also, I believe https won't work with the php client unless php is compiled with openssl support.

Resolving as WORKSFORME; no repros or further info in three months.