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

In reply to Re^2: LWP::UserAgent gives ASP.NET error by Anonymous Monk
in thread LWP::UserAgent gives ASP.NET error by TommyAllan

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.