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

If you're getting an error, the first thing you should do is examine the reported error. Especially when you're getting the error from a remote system.

Bringing up your URL manually in my browser, I am also getting an error page, "Message: Can not activate the view ErrorPopulate. Error executing child request for /SelfCare/Template.aspx." With the input you provide, /SelfCare/Template.aspx is failing. This means one of two things:

1) /SelfCare/Template.aspx is broken
-or-
2) You're passing it the wrong input

If it's #1, there's really nothing you can do about it except maybe complain to the uefa.com admins and tell them to fix it. If it's #2, then you need to poke at it a bit more with your browser to figure out the correct input (both URL and HTTP POST parameters) to send with your request.

Either way, if you're receiving the same error page with your robot as I am with my browser, then your robot is working just fine.

Replies are listed 'Best First'.
Re^2: LWP::UserAgent gives ASP.NET error
by Anonymous Monk on Oct 15, 2007 at 09:05 UTC
    Thanks for the responses.

    You're correct the $login I supplied gives the same error page with both browser and robot! I tested it this morning on my office computer. My home computer must have used a cookie which made the page work, as I didn't get the same response from the robot and the browser then.

    However now I've changed the $login to:
    $login = "https://secure.video.uefa.com/Selfcare/default.aspx?navGraph +=Login&returnUrl=http://video.uefa.com/video/login.html&returnUrl2=ht +tp://video.uefa.com/video/login.html&style=";


    It still gives the same error as below:
    HTTP/1.1 200 OK Connection: close Date: Mon, 15 Oct 2007 08:47:07 GMT Accept-Ranges: bytes Server: Microsoft-IIS/6.0 Content-Length: 883 Content-Type: text/html ETag: "0ce8cbe4b1dc71:df1" Last-Modified: Mon, 11 Dec 2006 17:42:36 GMT Client-Date: Mon, 15 Oct 2007 08:47:07 GMT Client-Peer: 213.198.70.20:443 Client-SSL-Cert-Issuer: /C=BE/O=GlobalSign nv-sa/OU=ServerSign CA/CN=G +lobalSign ServerSign CA Client-SSL-Cert-Subject: /C=CH/ST=Vaud/L=Nyon/O=UEFA/OU=UEFA Media Tec +hnologies SA/CN=secure.video.uefa.com Client-SSL-Cipher: EDH-RSA-DES-CBC3-SHA Client-SSL-Warning: Peer certificate not verified Set-Cookie: AlteonP=2b2bfcaa2b2bfcf2a52fba71; path=/ Title: Error X-Meta-GENERATOR: Microsoft Visual Studio .NET 7.1 X-Meta-Originator: Microsoft Visual Studio .NET 7.1 X-Meta-ProgId: VisualStudio.HTML X-Powered-By: ASP.NET Error! Message: undefined
    The browser page now works okay, with cookies switched off and with same query string so that's not a problem. I just need to get the same page using the robot as the browser as I need to take out a few params so I can then automatically log in (most notably the massive VIEWSTATE).

    Thanks, Tommy