Page MenuHomePhabricator

Transwiki import fails when cURL is disabled
Closed, ResolvedPublic



  • WinXP with XAMPP
  • MW 1.11alpha (r24190)
  • PHP: 5.2.2
  • MySQL: 5.0.37
  • cURL (by default) not enabled in php.ini

$wgImportSources = array( 'de' );

Transwiki import fails with this warning:

Warning: file_get_contents( function.file-get-contents: failed to open stream: HTTP request failed! HTTP/1.0 411 Length Required in F:\xampp\htdocs\wikitest\includes\HttpFunctions.php on line 69

Maybe I have misconfigured my system, but the transwiki import works well if cURL is enabled.

Version: 1.11.x
Severity: normal
OS: Windows XP
Platform: PC



Event Timeline

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

Fixed in r24198; adds the Content-Length: 0 to make whiny web servers happy.
(It's required for POSTs in HTTP 1.0, though not strictly required for 1.1.)