Last modified: 2007-07-17 14:47:26 UTC
Systemconfiguration: * 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(http://de.wikipedia.org/wiki/Special:Export/Berlin) 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.
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.)