Was doing a POST without sending Content-Length header, which some web servers get real pissy about.
Now sends a 'Content-Length: 0' header
* (bug 1629) Stop section edit links from being shoved down by other floats
* (bug 4650) Keep impossibly large/small counts off Special:Statistics
* (bug 10608) PHP notice when installing with PostgreSQL
+* (bug 10615) Fix for transwiki import when CURL not available
+
== API changes since 1.10 ==
# This may take 3 minutes to time out, and doesn't have local fetch capabilities
$opts = array('http' => array( 'method' => $method ) );
+ if( strcasecmp( $method, 'post' ) == 0 ) {
+ // Required for HTTP 1.0 POSTs
+ $opts['http']['header'] = "Content-Length: 0";
+ }
$ctx = stream_context_create($opts);
$url_fopen = ini_set( 'allow_url_fopen', 1 );