in reply to Re: Error accessing MediaWiki API
in thread Error accessing MediaWiki API

The headers may have been equivalent, but they weren't identical. The missing piece is the Accept header.

rfc2616 says: If no Accept header field is present, then it is assumed that the client accepts all media types.

It will work if you add headers to say that explicitly

$mw->{ua}->default_header('Accept' => "*/*");
This is clearly a bug with that webserver, it doesn't implement HTTP/1.x as it claims.

Replies are listed 'Best First'.
Re^3: Error accessing MediaWiki API
by bobf (Monsignor) on Mar 29, 2009 at 19:50 UTC

    Bingo! That did the trick. Thank you very much for your insight. You made my day. :-)