Subject: | Apache Content Negotiation Confuses Net::Blogger? |
My URL for the MT/Blogger API is:
http://disobey.com/cgi-bin/mt/mt-xmlrpc.cgi
Since I have content-negotiation on, however, I can use the (IMO) more preferable:
http://disobey.com/cgi-bin/mt/mt-xmlrpc
And those will resolve correctly in the browser (any browser). However, if I use
the extension-less version, Net::Blogger gives the following error:
[err] Fatal client error.
406 Not Acceptable at /Library/Perl/Net/Blogger/Engine/Base.pm line 243.
with the following code:
my $mt = Net::Blogger->new(engine=>"movabletype");
$mt->Proxy($opts{server});
$mt->Username($opts{username});
$mt->Password($opts{password});
$mt->BlogId($opts{blogid});
# get the list of categories from the server.
my $cats = $mt->mt()->getCategoryList()
or die "[err] ", $mt->LastError(), "\n";
The second I add the .cgi to the end though, it works without a problem.