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

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
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.