Closed Bug 41242 Opened 26 years ago Closed 26 years ago

Form POST is sent with HTTP GET method instead of POST

Categories

(Core :: DOM: Core & HTML, defect, P3)

x86
Windows NT
defect

Tracking

()

VERIFIED DUPLICATE of bug 41241

People

(Reporter: naujok, Assigned: rods)

References

()

Details

I am building an internal project which includes an HTTP server. Certain commands are then run internally within the server by get or post handlers. One of the forms (full HTML to follow) is sent using a POST method. However, Mozilla (M15) sends it using the GET method (Full HTTP headers included). This only happens on certain forms within the project (The log-in screen works correctly, the HTML for that follows as well.) In any case, calling GET instead of PUT is obviously incorrect. (The project is called NIWS 3.0 if you're wondering.) As an additional, when I tried to submit this bug with M15, it wouldn't work either... Jeff HTML of Log-In Screen [greeting.html] (Works) ------------------------------------------------------------------------------ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> <META NAME="Author" CONTENT="Jeffrey R. Naujok"> <META NAME="GENERATOR" CONTENT="EditPlus 1.25"> <META NAME="Description" CONTENT="Home page for NIWS 3.0"> <link rel=stylesheet type="text/css" href="/style-sheets/NIWS3Standard.css" title="NIWS3Standard"> <TITLE>Welcome to NIWS 3.0!</TITLE> </HEAD> <BODY bgcolor="white" onLoad="document.LoginForm.UserName.focus();"> <table width=600 border=0 cellpadding=0 cellspacing=0> <tr> <td align=left width=200 class=loginMenu valign=top> <b>NIWS 3.0</b><br> <hr width=80% height=2 color=#E0E0E0> Login to NIWS<br> <a href="/newuser/index.html">Get a NIWS Account</a><br> <hr width=80% height=2 color=#E0E0E0> <a href="/intro/whatis.html">What is NIWS?</a><br> <a href="/intro/whatsnew.html">What's new in 3.0?</a><br> <hr width=80% height=2 color=#E0E0E0> <a href="http://niwsroom.mcit.com">The NIWSROOM</a><br> <hr width=80% height=2 color=#E0E0E0> <a href="/documents/support.html">Support</a><br> <a href="/documents/comments.html">Comments</a><br> <hr width=80% height=2 color=#E0E0E0> <a href="/documents/browsers.html">Supported Browsers</a><br> <hr width=80% height=2 color=#E0E0E0> <a href="/documents/legal_information.html">Legal Information</a><br> <br><br> <div class=infoText> Thanks for coming to the NIWS system!<br> NIWS has been developed entirely within the MCI WorldCom corporation using no outside vendor products.<br> </div> </td> <td align=center valign=center> <h1>Welcome to the NIWS 3.0 System</h1> <br> <hr width=80% color=#E0E0E0> <h2>Please Log-in</h2> <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0> <TR> <TD ALIGN=CENTER NOWRAP WIDTH="400"> <TABLE BORDER=2 CELLSPACING=0 CELLPADDING=0 WIDTH="100%" class=loginFrame> <TR> <TD ALIGN=CENTER WIDTH="100%" class=loginFrame> <FORM action="exec/LoginTest" method="POST" name="LoginForm" target="_top"> <br> <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH="100%" class=loginFrame> <TR> <TD ALIGN=RIGHT WIDTH="300" class=loginFrame> <font face=arial> <nobr> User ID:&nbsp;<INPUT type="text" size="15" name="UserName"> </nobr> <br> <nobr> PassWord:&nbsp;<INPUT type="password" size="15" name="PassWord"> </nobr> </font> </TD> <TD ALIGN=CENTER WIDTH="125" class=loginFrame> <INPUT type="submit" name="Login" value="Login"> <br><br> <INPUT type="reset" name=" Clear" value="Clear"> </TD> </TR> </TABLE> </FORM> </TD> </TR> </TABLE> </TD> </tr> </TABLE> <br><a href="/forgotpassword/index.html">Forget your password?</a><br> </td> </tr> </table> <table width=600 border=0 cellpadding=0 cellspacing=0> <tr> <td class=copyrightBar align=center valign=center> Copyright &copy; 2000, MCI WorldCom Corporation. All Rights Reserved. </td> </tr> </table> </BODY> </HTML> HTML of Circuit Long-Route Form [index.html] (Does not work) -------------------------------------------------------------------------------- <!-- Data was parsed by NIWS 3.0 --> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> <META NAME="Author" CONTENT="Jeffrey R. Naujok"> <META NAME="GENERATOR" CONTENT="EditPlus 1.25"> <META NAME="Description" CONTENT="Circuit Long Route Report"> <link rel=stylesheet type="text/css" href="/style-sheets/NIWS3Standard.css" title="NIWS3Standard"> <title>NIWS: Circuit Long-Route Report</title> <script language="javascript" src="/scripts/ShowHelp.js"></script> </head> <body onLoad="document.CircuitForm.CircuitID.focus();"> <a href="/niws/title.html" target="niws_main"> <img src="/images/SmallLogo.gif" alt="NIWS" align="absmiddle" border="0"></a> <span class=pageTitle> Circuit Long-Route Report </span> <BR> <div align="center"> <table width="100%"> <tr> <td align=center> <table border="0" cellpadding="10" cellspacing="0" width=80%> <tr> <td class=formBackground align=center> <form name="CircuitForm" method="POST" target="_blank" action="/exec/DoReport"> <input type="hidden" name="ReportCode" Value="CircuitRpt"> <table> <tr> <td align=right valign=center class=formBackground> Circuit ID:<br> </td> <td align=left valign=center class=formBackground> <input type=text name="CircuitID" size=12 maxlength=12 value="MDBBXTBH0001"> </td> </tr> <tr> <td align=center valign=center colspan=2 class=formBackground> <input type=radio name="EndPoints" value="0" checked>Whole Circuit &nbsp;&nbsp;&nbsp; <input type=radio name="EndPoints" value="1">End Points </td> </tr> <tr> <td align=center valign=center colspan=2 class=formBackground> <span class=formOuputOptions> <input type=radio name=OutputOption value=HTML CHECKED>HTML &nbsp;&nbsp;&nbsp;&nbsp; <input type=radio name=OutputOption value=ASCII >Comma Delimited &nbsp;&nbsp;&nbsp;&nbsp; <input type=radio name=OutputOption value=Tabbed >Tab Delimited &nbsp;&nbsp;&nbsp;&nbsp; <input type=radio name=OutputOption value=Wrapped >Word Wrapped </span> <br><hr> <input type=button name=PrefButton value="Report Preferences" OnClick="PrefWindow=open( '/userpref/reportprefs/reportprefs.html?Reports=CircuitRpt', 'PrefsWindow', 'scrollbars=yes,width=450,height=400,resizable=yes')"> </td> </tr> <tr> <td align=center valign=center colspan=2 class=formBackground> <input type="submit" name="btnSubmit" value="Generate Report"> &nbsp;&nbsp;&nbsp;&nbsp; <input type="reset" name="btnReset" value="Restore Defaults"> &nbsp;&nbsp;&nbsp;&nbsp; <input type="button" name="btnHelp" value="Help" onClick="return ShowHelp('CircuitReport');"> </td> </tr> </table> </form> </td> </tr> </table> </td> </tr> </table> <br> <span class=copyrightBar> Copyright &copy; 2000 Worldcom Inc. All rights reserved. </span> </div> </body> </html> <!-- End of NIWS 3.0 Parsed Data --> Actual HTTP headers sent to server from index.html (NOTE: GET): ---------------------------------------------------------------------------- GET /exec/DoReport HTTP/1.0 Host: stutz.mcit.com:8080 User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; m15) Accept: */* Accept-Language: en Accept-Encoding: gzip,deflate,compress,identity Connection: close
Apparently it has something to do with the target tag of "_blank". When I removed that, it worked correctly.
*** This bug has been marked as a duplicate of 41241 ***
Status: UNCONFIRMED → RESOLVED
Closed: 26 years ago
Resolution: --- → DUPLICATE
vrfy
Status: RESOLVED → VERIFIED
Component: HTML: Form Submission → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.