-----BEGIN PGP SIGNED MESSAGE-----
On 10-06-05 02:05 PM, Ravi Parimi wrote:
8 protocol => 'https',
9 host => 'wiki.eng.xxx.com',
This is where you're going wrong. You can see from the carp
Error code: 2 at bot.pl line 14
500 Can't connect to https:80 (Bad hostname 'https') : error occurred
when accessing http://https/host/api.php
after 6 attempt(s) at bot.pl
that it is trying to contact "http://https/host/api.php" which is... not
valid. At all. You have to set protocol, host and path properly.
I can't tell what mistake you made without the actual code and output.
I tried setting usagent to 'MediaWiki::Bot 2.3.1
(User:Mike.lifeguard)' as well, but it didn't help.
The useragent is totally unrelated, and you don't need to set it at all.
As evidenced by the above, the default is probably better than what most
people will set it to.
And I have to ask... you have MediaWiki::Bot 3.0? You checked it out
from SVN yourself? Because the code you've copied is written for 3.0...
if you don't have 3.0 then you're likely going to have issues.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
-----END PGP SIGNATURE-----