in reply to lwp error: Receiving http 500 error when submitting.....

Perhaps you should consider posting just a link to the URL http://my.screenname.aol.com/_cqr/login/aimAutoLoginFail.psp?aimWaitCancel=y&triedAimAuth=y instead of posting the HTML source here.

I think you need to add
"Sign In" => "SUBMIT"
to your post command. See if that fixes the problem.

:)