Last modified: 2007-07-17 14:47:26 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T12615, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 10615 - Transwiki import fails when cURL is disabled
Transwiki import fails when cURL is disabled
Product: MediaWiki
Classification: Unclassified
Special pages (Other open bugs)
PC Windows XP
: Normal normal with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2007-07-17 14:18 UTC by Raimond Spekking
Modified: 2007-07-17 14:47 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Description Raimond Spekking 2007-07-17 14:18:20 UTC

* 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.
Comment 1 Brion Vibber 2007-07-17 14:47:26 UTC
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.)

Note You need to log in before you can comment on or make changes to this bug.