in reply to Re^10: WWW::Mechanize Problem
in thread WWW::Mechanize Problem

An appendix to the above reply,
When i tried changing the credential line to the one shown below
$ua->credentials('punsez138451d/L3NOCALM:80','',"INFLEVEL3\\venkatesan +_g02",'password');

I am getting the following error
C:\Documents and Settings\venkatesan_G02\Desktop>perl automate.pl --Performing request now...------------------ --Done with request--------------------------- It didn't work!->401 401 Unauthorized Date: Wed, 08 Apr 2009 19:02:07 GMT Server: Microsoft-IIS/6.0 WWW-Authenticate: Negotiate WWW-Authenticate: NTLM Content-Length: 1656 Content-Type: text/html Content-Type: text/html; charset=Windows-1252 Client-Date: Wed, 08 Apr 2009 19:02:08 GMT Client-Peer: 4.33.38.79:80 Client-Response-Num: 1 Client-Warning: Unsupported authentication scheme 'negotiate' MicrosoftSharePointTeamServices: 12.0.0.4518 Title: You are not authorized to view this page X-Powered-By: ASP.NET

Thanks in advance

Replies are listed 'Best First'.
Re^12: WWW::Mechanize Problem
by ikegami (Patriarch) on Apr 08, 2009 at 19:06 UTC
    punsez138451d/L3NOCALM is not a host name. The authentication was working in the previous post.
    http://punsez138451d/L3NOCALM/default.aspx'
    is short for
    http://punsez138451d:80/L3NOCALM/default.aspx'
    where
    • "http" is the scheme.
    • "punsez138451d" is the host name.
    • "80" is the host port.
    • "/default.aspx" is the path.

    The credentials are for the entire host, specified using it's name and it's port.

      Hello Cardinal, When i use "punsez138451d:80" in the credential section i am getting 500 Internal Server Error.

      Please advice

        We've been here before...

        That means the authentication worked and that your .aspx script didn't. Check your server's access log to confirm the server sent the 500 — LWP uses creates 500 responses for errors such as timeouts — and check your server's error log to find out what the actual error is.

        We can't help you debug your .aspx script since you haven't told us anything about it. It's likely out of the realm of this site anyway.