in reply to LWP::UserAgent gives ASP.NET error

Maybe target server dislike your GET method? Did you try POSTing? Also try exactly repeat all form fields that your browser sending when you pass authorization.