Closed Bug 57749 Opened 24 years ago Closed 24 years ago

"View Page Source" fails to display HTML output of a CGI script when form information is sent with the POST method

Categories

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

x86
Windows 98
defect

Tracking

()

VERIFIED DUPLICATE of bug 55583

People

(Reporter: lordhadez, Assigned: vishy)

References

()

Details

Attachments

(1 file)

From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; m18) Gecko/20001023 BuildID: 20001023 In the CGI script at http://www.m-w.com/ if form data is sent with the POST method and the output is "View Page Source"-ed, it gave me incorrect information. When i changed the location from "http://www.m-w.com/cgi-bin/dictionary" to "http://www.m-w.com/cgi-bin/dictionary?book=dictionary&va=diurnal" and then clicked "View Page Source" on that it gave me what I was looking for. Reproducible: Always Steps to Reproduce: 1. go to http://www.m-w.com/ 2. type "diurnal" (without quotes) in the "Collegiate Dictionary" box and click the "Look it up" button 3. view page source Actual Results: <html><body></body></html> Expected Results: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> <html> <head> <title>Merriam-Webster OnLine - Dictionary - Thesaurus - Word of the Day - Word Games - Word for the Wise</title> <meta name="Description" content="Merriam-Webster OnLine provides a free, searchable on-line dictionary and thesaurus, word games, a word of the day, and many other English language and vocabulary reference tools and resources."> <meta name="Keywords" content="dictionary, dictionery, dictionaries, online dictionary, thesaurus, thesaures, thesauruses, thesauri, Word of the Day, Word a Day, word games, free, game, puzzle, Word for the Wise, WFTW, Webster, Webster's Dictionary, Webster's, Merriam Webster, Merriam, Merriam-Webster, Mirriam, Mirriam-Webster, WWWebster, WWWebster's, word, word origin, online, on-line, abbreviation, acronym, adjective, adverb, antonym, book, bookstore, computer term, conjunction, define, definition, definitions, diction, dicto, education, English, etymology, fun, glossary, glossaries, grammar, homonym, homophone, information, language, linguistic, linguistics, linking verb, lookup, meaning, medical terminology, netdict, noun, pronoun, pronunciation, reference, revised, spell checker, spellchecker, spelling, synonym, terminology, unabridged, usage, verb, vocabulary, word help, word list"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body bgcolor="#ffffff" text="#000000" link="#ff0000" vlink="#0099ff" alink="#ff0000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> <table width="750" border="0" vspace="0" hspace="0" cellpadding="0" cellspacing="0"> <tr> <td width="150" bgcolor="#000099" valign="top"> <!-------NAV BAR-------> <br> <center> <A href="/home.htm" style="TEXT-DECORATION: none" target="_top"> <IMG alt="Merriam-Webster home" height=95 src="/images/mwlogo_new.gif" width=94 border="0"> </a></center> <br> <table border="0" width="140" cellpadding="2" align="center"> <tr> <td valign="top"><A href="/home.htm" style="TEXT-DECORATION: none" target="_top"> <font color="#ffffff" size="2" face="Arial, Helvetica"><img src="/images/pointer.gif" width=5 height=10 border=0 alt=""> <b>Home</b></font></a></td> </tr> <tr> <td valign="top"><A href="/cgi-bin/mwwod.pl" style="TEXT-DECORATION: none" target="_top"> <font color="#ffffff" size="2" face="Arial, Helvetica"><img src="/images/pointer.gif" width=5 height=10 border=0 alt=""> <b>Word of the Day</b></font></A></td> </tr> <tr> <td valign="top"><A href="/game/" style="TEXT-DECORATION: none" target="_top"> <font color="#ffffff" size="2" face="Arial, Helvetica"><img src="/images/pointer.gif" width=5 height=10 border=0 alt=""> <b>Word Games</b></font></A></td> </tr> <tr> <td valign="top"><A href="/wftw/wftw.htm" style="TEXT-DECORATION: none" target="_top"> <font color="#ffffff" size="2" face="Arial, Helvetica"><img src="/images/pointer.gif" width=5 height=10 border=0 alt=""> <b>Word for the Wise</b></font></A></td> </tr> <tr> <td valign="top"><A href="/book/book.htm" style="TEXT-DECORATION: none" target="_top"> <font color="#ffffff" size="2" face="Arial, Helvetica"><img src="/images/pointer.gif" width=5 height=10 border=0 alt=""> <b>Books and CDs</b></font></A></td> </tr> <tr> <td valign="top"><A href="/about/aboutmw.htm" style="TEXT-DECORATION: none" target="_top"> <font color="#ffffff" size="2" face="Arial, Helvetica"><img src="/images/pointer.gif" width=5 height=10 border=0 alt=""> <b>Company Info</b></font></A></td> </tr> <tr> <td valign="top"><A href="/service/service.htm" style="TEXT-DECORATION: none" target="_top"> <font color="#ffffff" size="2" face="Arial, Helvetica"><img src="/images/pointer.gif" width=5 height=10 border=0 alt=""> <b>Customer Service</b></font></A></td> </tr> <tr> <td valign="top"><A href="/book/neteds/neteds.htm" style="TEXT-DECORATION: none" target="_top"> <font color="#ffffff" size="2" face="Arial, Helvetica"><img src="/images/pointer.gif" width=5 height=10 border=0 alt=""> <b>Network Options</b></font></A></td> </tr> <tr> <td valign="top"><A href="/info/info.htm" style="TEXT-DECORATION: none" target="_top"> <font color="#ffffff" size="2" face="Arial, Helvetica"><img src="/images/pointer.gif" width=5 height=10 border=0 alt=""> <b>Language Zone</b></font></A></td> </tr> <tr> <td valign="top"><A href="/lighter/lighter.htm" style="TEXT-DECORATION: none" target="_top"> <font color="#ffffff" size="2" face="Arial, Helvetica"><img src="/images/pointer.gif" width=5 height=10 border=0 alt=""> <b>The Lighter Side</b></font></A></td> </tr> <tr> <td valign="top"><A href="/map_new.htm" style="TEXT-DECORATION: none" target="_top"> <font color="#ffffff" size="2" face="Arial, Helvetica"><img src="/images/pointer.gif" width=5 height=10 border=0 alt=""> <b>Site Map</b></font></A></td> </tr> </table> <br> <table border="0" width="125" bgcolor="white" align="center" cellpadding="1" cellspacing="0"> <tr> <td width="34"><A href="/book/puzzspec/crosqst5.htm" target="_top"><IMG border=0 height=36 src="/images/cross1.gif" width=36></A></td> <td align="middle" valign="center" width="91"><p align="center"><A href="/book/puzzspec/crosqst5.htm" target="_top"> <font size="1" face="Arial, Helvetica">Crossword Quest Volumes 5 &amp; 6 &#150 Now Available!</font></A></p> </td> </tr> </table> <br> <!-----125X125 Ad------> <table width="125" border="0" bordercolor="black" cellspacing="0" bgcolor="white" align="center"><tr><td> <!--Begin Engage Media Ad Copyright 1999 Engage Media. All rights reserved. Patent Pending --> <SCRIPT LANGUAGE="JAVASCRIPT"> <!-- FlycastSite = "MerriamWebster"; FlycastPage = "ROS125x125"; FlycastWidth = 125; FlycastHeight = 125; FlycastPrintTag = true; FlycastNewAd = true; FlycastEnableTargetWindow = false; FlycastKeyword = ""; FlycastLoaded = false; FlycastVersion = 3.6; //--> </script> <SCRIPT SRC="http://js-adex3.flycast.com/FlycastUniversal/Version3.6/" LANGUAGE="JAVASCRIPT"></script> <SCRIPT LANGUAGE="JAVASCRIPT"> <!-- if (!FlycastLoaded) document.write('<A target="_top" HREF="http://ad-adex3.flycast.com/server/click/MerriamWebster/ROS125x125/123"><IM' + 'G WIDTH=125 HEIGHT=125 BORDER=0 SRC="http://ad-adex3.flycast.com/server/ad/MerriamWebster/ROS125x125/123"></A>'); //--> </script> <NOSCRIPT> <IFRAME SRC="http://ad-adex3.flycast.com/server/iframe/MerriamWebster/ROS125x125/123" scrolling="no" marginwidth=0 marginheight=0 frameborder=0 vspace=0 hspace=0 WIDTH=125 HEIGHT=125> <A target="_top" HREF="http://ad-adex3.flycast.com/server/click/MerriamWebster/ROS125x125/123"><IMG BORDER=0 WIDTH=125 HEIGHT=125 SRC="http://ad-adex3.flycast.com/server/img/MerriamWebster/ROS125x125/123"></A> </IFRAME> </NOSCRIPT> <!--End Engage Media Ad Copyright 1999 Engage Media. All rights reserved. Patent Pending --> </td></tr></table> </td> <td width="600" valign="top"> <!-------AD BANNER-------> <table border="0" width="595" vspace="0" hspace="0" cellpadding="5" cellspacing="0"> <tr> <TD valign="top" width="468" align="center"> <!--Begin Engage Media Ad Copyright 1999 Engage Media. All rights reserved. Patent Pending --> <SCRIPT LANGUAGE="JAVASCRIPT"> <!-- FlycastSite = "MerriamWebster"; FlycastPage = "ROS468x60"; FlycastWidth = 468; FlycastHeight = 60; FlycastPrintTag = true; FlycastNewAd = true; FlycastEnableTargetWindow = false; FlycastKeyword = ""; FlycastLoaded = false; FlycastVersion = 3.6; //--> </script> <SCRIPT SRC="http://js-adex3.flycast.com/FlycastUniversal/Version3.6/" LANGUAGE="JAVASCRIPT"></script> <SCRIPT LANGUAGE="JAVASCRIPT"> <!-- if (!FlycastLoaded) document.write('<A target="_top" HREF="http://ad-adex3.flycast.com/server/click/MerriamWebster/ROS468x60/123"><IM' + 'G WIDTH=468 HEIGHT=60 BORDER=0 SRC="http://ad-adex3.flycast.com/server/ad/MerriamWebster/ROS468x60/123"></A>'); //--> </script> <NOSCRIPT> <IFRAME SRC="http://ad-adex3.flycast.com/server/iframe/MerriamWebster/ROS468x60/123" scrolling="no" marginwidth=0 marginheight=0 frameborder=0 vspace=0 hspace=0 WIDTH=468 HEIGHT=60> <A target="_top" HREF="http://ad-adex3.flycast.com/server/click/MerriamWebster/ROS468x60/123"><IMG BORDER=0 WIDTH=468 HEIGHT=60 SRC="http://ad-adex3.flycast.com/server/img/MerriamWebster/ROS468x60/123"></A> </IFRAME> </NOSCRIPT> <!--End Engage Media Ad Copyright 1999 Engage Media. All rights reserved. Patent Pending --> </td> <TD width="132" valign="middle" align="center"> </td> </tr> </table> <!-------END AD BANNER-------> <table border="0" width="590" vspace="0" cellspacing="0" cellpadding="10"> <tr> <TD valign="top" width="456" align="center"> <table border="0" width="426" align="center" background="/images/pixt.gif"> <tr> <TD align="center" valign="top" width="100%" height="75"> <IMG alt="" border=0 height=59 src="/images/title_dict.gif" width=356> </td> </tr> </table> <table border="0" width="456" align="center" cellspacing="0" cellpadding="0"> <tr> <td align="center" valign="top" bgcolor="#CC0000" width="456"> <IMG alt="" border=0 height=25 src="/images/tabs2.gif" useMap=#tabsmap2 width=456> <map name="tabsmap2"> <area shape="RECT" alt="Dictionary" title="dictionary" coords="1,1,206,25" href="/dictionary.htm"> <area shape="RECT" alt="Thesaurus" title="thesaurus" coords="208,1,403,25" href="/thesaurus.htm"> <area shape="RECT" alt="Help" title="help" coords="405,1,456,25" href="/help.htm"> </map> <table bgcolor="white" width="446" cellpadding="5"><tr><td> <br> <form method=post action="/cgi-bin/thesaurus"> 2 words found.<br> To view an entry in the list, highlight it and click on GO TO. <pre><input type=hidden name=hdwd value=diurnal><input type=hidden name=book value=Dictionary> <input type=submit name=swap value=Thesaurus></form><form method=post action="dictionary"><input type=hidden name=hdwd value=diurnal><input type=hidden name=book value=Dictionary> <input type=submit value="Go To"> <select name=jump size=2> <option selected>diurnal[1,adjective] <option>diurnal[2,noun] </select><input type=hidden name=list value="diurnal[1,adjective]=295499;diurnal[2,noun]=295524"> </pre><br>Main Entry: <b><sup>1</sup>di·ur·nal</b><br> Pronunciation: <tt>dI-'&amp;r-n<sup>&amp;</sup>l</tt><br> Function: <i>adjective</i><br> Etymology: Middle English, from Latin <i>diurnalis</i> -- more at <a href="dictionary?book=Dictionary&va=journal"><font size="-1">JOURNAL</font></a><br> Date: 14th century<br> <b>1 a</b> <b>:</b> recurring every day &lt;<i>diurnal</i> tasks&gt; <b>b</b> <b>:</b> having a daily cycle &lt;<i>diurnal</i> tides&gt;<br><b>2 a</b> <b>:</b> of, relating to, or occurring in the daytime &lt;the city's <i>diurnal</i> noises&gt; <b>b</b> <b>:</b> active chiefly in the daytime &lt;<i>diurnal</i> animals&gt; <b>c</b> <b>:</b> opening during the day and closing at night &lt;<i>diurnal</i> flowers&gt;<br>- <b>di·ur·nal·ly</b> /<tt>-n<sup>&amp;</sup>l-E</tt>/ <i>adverb</i> </form> </td></tr></table> <table bgcolor="#CC0000" width="456"> <tr> <td> </td></tr></table> </td> </tr> </table> <br> <table width="456" cellspacing="0" cellpadding="3" bgcolor="#009999"> <tr><TD valign="top" align="center"> <font size="2" face="Arial, Helvetica" color="white"><A href="/service/subinst.htm" style="COLOR: white; TEXT-DECORATION: none"> Get the <b>Word of the Day e-mailed</b> every morning. It's free! Click here.</A></font><br> </TD></tr></table> <br> <table width="456" border="0" cellpadding="5"> <tr> <td valign="top" width="5" align="right"><A href="/wftw/wftw.htm"><IMG alt="" border=0 src="/images/pointer.gif" width=5 vspace="4"></A></td> <td width="442" valign="top"><font size="2" face="Arial, Helvetica"><b><A href="/wftw/wftw.htm" style="COLOR: #0033cc"> Words to the wise</a><br></b> Check out scripts from Word for the Wise, a popular radio program sponsored by Merriam-Webster and broadcast daily on public radio stations nationwide.</font><br> </td> </tr> <tr> <td valign="top" width="5" align="right"><A href="/book/puzzspec/croswrd.htm"><IMG alt="" border=0 src="/images/pointer.gif" width=5 vspace="4"></A></td> <td width="442" valign="top"><font size="2" face="Arial, Helvetica"><b><A href="/book/puzzspec/croswrd.htm" style="COLOR: #0033cc"> Gain the winning edge!</a><br></b> Solve your crossword puzzles in record time and increase your gaming enjoyment with Merriam-Webster's Crossword Puzzle Dictionary.<br></font> </td></tr> </table> </td> <td width="144" valign="top" align="left"> <table width="112" border="0" bordercolor="black" cellspacing="0"> <tr><TD align="center"> <font size="1" face="Arial, Helvetica"><A href="http://store.britannica.com/scripts/store.dll/?1+f7mRBYdJ5jS0/CvQjC7jlLBb9Vv3C9cAPpN00pJl-1FfbmAbBSi2000x300000IF1-3Ho6IV0p7OI7y1btuma0Yz0TfxHfS9K3BExplm270fvdwK3JuW4o4gf10WE4IKOW033IGt118D64000">More search options &amp; audio pronunciations than any other dictionary! Install it on your hard drive.</A></font><br> <A href="http://store.britannica.com/scripts/store.dll/?1+f7mRBYdJ5jS0/CvQjC7jlLBb9Vv3C9cAPpN00pJl-1FfbmAbBSi2000x300000IF1-3Ho6IV0p7OI7y1btuma0Yz0TfxHfS9K3BExplm270fvdwK3JuW4o4gf10WE4IKOW033IGt118D64000"><IMG alt="" border=0 height=85 src="/images/elec460x_thumb.gif" vspace=8 width=75></A> </td></tr></table> <table width=112 cellspacing="0" cellpadding="0"> <tr> <td align="center" valign="bottom"> <font size="2" face="Arial, Helvetica"><b></b></font> </td></tr> <tr> <td align="center"> <form name="dict" method="post" action="/cgi-bin/dictionary"> <input type="hidden" name="book" value="Dictionary"> <input name="va" size="12"> </td></tr> <tr> <td align="center"> <input type="submit" value="Dictionary"> </td></FORM> </tr> </table> <br> <table width=112 cellspacing="0" cellpadding="0"> <tr> <td align="center" valign="bottom"> <font size="2" face="Arial, Helvetica"><b></b></font> </td></tr> <tr> <td align="center"> <form name="thes" method="post" action="/cgi-bin/thesaurus"> <input type="hidden" name="book" value="Thesaurus"> <input name="va" size="12"> </td></tr> <tr> <td align="center"> <input type="submit" value="Thesaurus"> </td></FORM> </tr> </table> <br> <table width="112" border="1" bordercolor="#336699" cellspacing="0" cellpadding="0"> <tr> <td align="center"> <font size="1" face="Arial, Helvetica"><b>Get to know<br><a href="http://search.britannica.com/search?query=diurnal">"diurnal"</a><br>at</b><br></font> </td></tr> <tr> <td align="center" bgcolor="#336699"> <a href="http://search.britannica.com/search?query=diurnal"><img src="/images/eblogo2.gif" width=107 height=17 border=0 alt=""></a><br> </td></tr> </table> <br> <table width="112" border="1" cellpadding="0" cellspacing="0" bordercolor="#000099"> <tr><td align="center"> <img src="/images/pixt.gif" width=1 height=7 border=0 alt=""><br> <font size="2" face="Arial, Helvetica">Join our growing list of partners: AOL, Palm, NYT Learning Network, Medscape, and more &#151; <A href="/service/service.htm" style="COLOR: #0033cc">Click here</a>. </font><br> <img src="/images/pixt.gif" width=1 height=7 border=0 alt=""><br> </td></tr> </table> </td> </tr> </table> <table cellspacing="10" width="550" align="center"> <tr> <td> <table width="585" cellspacing="0" cellpadding="5" border="0"> <tr> <td colspan="3" bgcolor="#009999" align="center"> <font size="2" face="Arial, Helvetica" color="white"><b>Pronunciation Symbols</b></font> </td> <td bgcolor="#000099" align="center"> <font size="2" face="Arial, Helvetica" color="white"><b>Thesaurus Symbols</b></font> </td> </tr> <tr> <td width="27%" valign="top"> <font size="2" face="Arial, Helvetica"> \&amp;\ as <b>a</b> and <b>u</b> in <b>a</b>b<b>u</b>t<br> \<sup>&amp;</sup>\ as <b>e</b> in kitt<b>e</b>n<br> \&amp;r\ as <b>ur</b>/<b>er</b> in f<b>ur</b>th<b>er</b><br> \a\ as <b>a</b> in <b>a</b>sh<br> \A\ as <b>a</b> in <b>a</b>ce<br> \&auml;\ as <b>o</b> in m<b>o</b>p<br> \au\ as <b>ou</b> in <b>ou</b>t<br> \ch\ as <b>ch</b> in <b>ch</b>in </font> </td> <td width="25%" valign="top"> <font size="2" face="Arial, Helvetica"> \e\ as <b>e</b> in b<b>e</b>t<br> \E\ as <b>ea</b> in <b>ea</b>s<b>y</b><br> \g\ as <b>g</b> in <b>g</b>o<br> \i\ as <b>i</b> in h<b>i</b>t<br> \</font>I<font size="2" face="Arial, Helvetica">\ as <b>i</b> in <b>i</b>ce<br> \j\ as <b>j</b> in <b>j</b>ob<br> \[ng]\ as <b>ng</b> in si<b>ng</b><br> \O\ as <b>o</b> in g<b>o</b> </font> </td> <td width="24%" valign="top"> <font size="2" face="Arial, Helvetica"> \o\ as <b>aw</b> in l<b>aw</b><br> \oi\ as <b>oy</b> in b<b>oy</b><br> \th\ as <b>th</b> in <b>th</b>in<br> \<u>th</u>]\ as <b>th</b> in <b>th</b>e<br> \&uuml;\ as <b>oo</b> in l<b>oo</b>t<br> \u\ as <b>oo</b> in f<b>oo</b>t<br> \y\ as <b>y</b> in <b>y</b>et<br> \zh\ as <b>si</b> in vi<b>si</b>on </font> </td> <td width="24%" valign="top" rowspan="2"> <font size="2" face="Arial, Helvetica"> *&nbsp;&nbsp;generally or often considered vulgar<br><br> ||&nbsp;&nbsp;usage restricted; consult a dictionary for more information</font><br> </td> </tr> <tr> <td colspan="4" align="center"> <font size="2" face="Arial, Helvetica">For more information see the <A href="/pronguid.htm">Guide To Pronunciation</A> and the <A href="/thesymb.htm">Thesaurus Symbol Guide</A>.</font> </td> </tr> </table><br> <hr align="center" width="200" noshade color="navy" size="1"> <table width="85%" align="center"><tr> <td width="12%" valign="top" align="center"><A href="/home.htm"><font size="1" face="Arial, Helvetica">Home</font></A></td> <td width="12%" valign="top" align="center"><A href="mailto:permissions@m-w.com"><font size="1" face="Arial, Helvetica">Link to Us</font></A></td> <td width="22%" valign="top" align="center"><A href="/service/service.htm#advertise"><font size="1" face="Arial, Helvetica">Advertising Info</font></a></td> <td width="20%" valign="top" align="center"><A href="/service/service.htm"><font size="1" face="Arial, Helvetica">Customer Service</font></A></td> <td width="18%" valign="top" align="center"><A href="/about/aboutmw.htm"><font size="1" face="Arial, Helvetica">Company Info</font></A></td> <td width="16%" valign="top" align="center"><A href="mailto:suggest@m-w.com"><font size="1" face="Arial, Helvetica">Contact Us</font></A></td> </tr></table> <hr align="center" width="200" noshade color="navy" size="1"> <p align="center"><font size="1" face="Arial, Helvetica"><A href="/about/copyrite.htm">&copy; 2000 by Merriam-Webster, Incorporated</A></font><br> <font size="1" face="Arial, Helvetica"><A href="/about/privacy.htm">Merriam-Webster Privacy Policy</A></font></p> <br><br><br> </td> </tr> </table> </td> </tr> </table> </body> </html> Does not happen when form data is sent with the GET method.
I am not quite sure who to send this to... The problem is the URL that is passed into the DocShell for view source doesn't include the post data. I am assuming the URL that is stored in history DOES include that data, but it isn't being set into the URL that is passed into the new docshell. reassinging
Assignee: rods → don
Status: UNCONFIRMED → NEW
Ever confirmed: true
This same behavior occurs if you open a new window and write html to it. If you view source on the new window, all you see is the source for a blank html document not the content that was written to the window. I don't believe this is a form submission problem but more probably related to the "View Source" displaying the original source for the page rather than any dynamic content added to the page after loading. lordhadez, we didn't need to see all of the source for your page in this bug report. It just clutters things up and makes it more difficult to read people's comments.
I'm running into this problem developing cgi scripts that use the POST method... What is happening, is that the "view source" takes the source of the page last cached by looking only at the URL, instead of the page on display at that moment (which is quite different, due to the posted FORM). Oh well, back to NS4.7 for today :-(
Since Don has left, Vishy is taking his bugs in bulk, pending reassignment. thanks, Vishy
Assignee: don → vishy
This is a duplicate of a generic bug about view source needing to use cache. *** This bug has been marked as a duplicate of 55583 ***
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
vrfy dupe bug 55583 : view-source should pull from cache. [doesn't work for pages generated via forms with method=POST]
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.

Attachment

General

Created:
Updated:
Size: