Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
How to submit the nickname and password for the HTML page below?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>Untitled</title> <link rel=stylesheet type="text/css" href="../images/friendsco +ut.css"> </head> <body background="../images/fs_bg/bg_login.gif" bgcolor="#95B8CE" topm +argin="0" leftmargin="0" marginheight="0" marginwidth="0"> <FORM method="get" action="/cgi-bin/pu_help2.fcgi"> <input type="HIDDEN" name="id" value="1-d24-6UAPfv6PUogp1jjKEb60Giw"> <input type=hidden name="page" value="loginp"> <table cellpadding=0 cellspacing=0 border=0> <tr> <td colspan=3><img src="../images/nix.gif" width="1" height="20" b +order="0"> </td> </tr> <tr> <td><img src="../images/nix.gif" width="10" height="1" border="0"> +</td> <td colspan=2>Pseudonym</td> </tr> <tr> <td>&nbsp;</td> <td colspan=2><input type=text name="nickname" size=18 maxlength=4 +0></td> </tr> <tr> <td colspan=3><img src="../images/nix.gif" width="1" height="8" bo +rder="0"></td> </tr> <tr> <td>&nbsp;</td> <td colspan=2>Passwort</td> </tr> <tr> <td>&nbsp;</td> <td><input type=password name="password" size=10 maxlength=30></td +> <td align=right><input type="image" value="Submit" src="../ima +ges/fs_buttons/go.gif" width="26" height="17" border="0" alt="Go!"></ +td> </tr> </table></form> </body> </html>
I tried fiddling with the following Perl code but can't get it to work:
my $req = new HTTP::Request('POST', $url, $hdrs); $req->content_type("application/x-www-form-urlencoded"); $req->content("nickname=JohnSmith&password=test");

In reply to How to submit name & password using LWP ? by BinBerliner

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, 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, 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.
  • Log In?

    What's my password?
    Create A New User
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others pondering the Monastery: (5)
    As of 2020-10-24 01:03 GMT
    Find Nodes?
      Voting Booth?
      My favourite web site is:

      Results (242 votes). Check out past polls.