finfan has asked for the wisdom of the Perl Monks concerning the following question:

I'm pretty strong with perl but know only a little about html and nearly nothing about java. I need to code a login to a java based web form. The html source of the page looks like this
<frame src="/html/ofa/login/loginHeader.html" scrolling="no" nores +ize="noresize" id="header" /> <frame src="main.jsp" scrolling="auto" noresize="noresize" id="mai +nFrame" /> <frame src="/jsp/ofa/login/loginFooter.jsp" scrolling="no" noresiz +e="noresize" id="footer" />
Optimally I would like touse WWW::Mechanize, but I am open to any suggestion you fine folks might have.

Replies are listed 'Best First'.
Re: HTTPS authentication to java form
by Corion (Patriarch) on Nov 22, 2013 at 07:42 UTC

    There is no form in the HTML you showed.

    Maybe you want to learn about HTTP and HTML first? You will need to find the appropriate frame, then ->get() that frame URL, then navigate onward. See the documentation on ->find_links in WWW::Mechanize for how to get at the frame URL.

    WWW::Mechanize::Firefox handles (through Firefox) frames somewhat more transparently, but you need Firefox and a display for it.

      I know that there is no form in that jtml. I am assuming the form is rendered by the main.jsp script. So I am not sure what frame I should be "get"ing.

        The documentation says that ->find_link accepts an id parameter. Maybe you want to pass it the id of the main frame? If you do that, you get a link back, which you can then ->get in turn.