⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 faq.html

📁 this gives details of the network programming
💻 HTML
字号:
<HTML><HEAD><TITLE>NetProg Homework 4 FAQ</TITLE><LINK rel=stylesheet type="text/css" HREF=../../style/proj.css></HEAD><BODY BGCOLOR=WHITE MARGINHEIGHT=0 MARGINWIDTH=0 TOPMARGIN=0  LEFTMARGIN=0><TABLE bgColor=#8899aa border=0 cellPadding=4 cellSpacing=0 width="100%">  <TR>    <TD class=title>&nbsp NetProg 2002 HW4 FAQ</TD> </TR><TR BGCOLOR=BLACK><TD CLASS=menu> &nbsp &nbsp<A CLASS=menu HREF=p4.html>Project Description</A> &nbsp &nbsp |&nbsp &nbsp<A CLASS=menu HREF=../submission.html>Submission Instructions</A></TD></TR></TABLE><BR><BR><DIV CLASS=page><CENTER><TABLE WIDTH=90% CELLPADDING=3 BORDER=0 CELLSPACING=0><TR BGCOLOR=#ddeeff>  <TD VALIGN=TOP CLASS=label>Question:</TD>  <TD CLASS=qa><P>If I leave the name parameter to Window.open blank  IE seems to work fine (I always get a new window), but the version  of Netscape running on the CS machines doesn't give me new windows.  How can I fix this? </P>  </TD></TR><TR BGCOLOR=#ffeedd>  <TD VALIGN=TOP CLASS=label>Answer:</TD>  <TD CLASS=qa><P>Use the name <CODE>"_blank"</CODE> for all windows,  this works with IE and Netscape. </P>  </TD></TR><TR><TD COLSPAN=2><BR> <HR WIDTH=80%><BR></TD></TR><TR BGCOLOR=#ddeeff>  <TD VALIGN=TOP CLASS=label>Question:</TD>  <TD CLASS=qa><P>The demo system doesn't seem to work! I put in the url<CODE>http://www.yahoo.com</CODE> but nothing pops up.   </P>  </TD></TR><TR BGCOLOR=#ffeedd>  <TD VALIGN=TOP CLASS=label>Answer:</TD>  <TD CLASS=qa><P><CODE>http://www.yahoo.com</CODE> is not a valid URL, as it'smissing the trailing '<CODE>/</CODE>'. I've adjusted the demo system to handle this(and other) situations. You don't have to handle this kind of stuff in your HW4, youcan just assume the URL you have been given is valid.   </P>  </TD></TR><TR><TD COLSPAN=2><BR> <HR WIDTH=80%><BR></TD></TR><TR BGCOLOR=#ddeeff>  <TD VALIGN=TOP CLASS=label>Question:</TD>  <TD CLASS=qa><P>I can't get the webserver on cgi2.cs.rpi.edu to execute my script.  all it does is print out the perl code.  I have set it as being able to be read and executed by anyone.  Do you know what could be wrong? </P>  </TD></TR><TR BGCOLOR=#ffeedd>  <TD VALIGN=TOP CLASS=label>Answer:</TD>  <TD CLASS=qa><P>Use cgi.cs.rpi.edu for now. It appears that cgi2.cs.rpi.edu is notusing the same rules to decide what should be executed (naming yourprogram something.cgi doesn't seem to be enough...). </P> <P STYLE="color: red; margin-left: .5in; margin-right: .5in">Update: labstaff says "To make a cgi file executable on cgi2, you must put it in the cgi-bin directory under public.html".</P>   </TD></TR><TR><TD COLSPAN=2><BR> <HR WIDTH=80%><BR></TD></TR><TR BGCOLOR=#ddeeff>  <TD VALIGN=TOP CLASS=label>Question:</TD>  <TD CLASS=qa><P> Since we are generating a web page based on user input, isn't  there the possibility of the user inserting Javascript that could  do <em>nasty</em> things? Do we need to worry about this? </P>  </TD></TR><TR BGCOLOR=#ffeedd>  <TD VALIGN=TOP CLASS=label>Answer:</TD>  <TD CLASS=qa><P>For this assignment you don't need to worry about  this. In general you do need to worry! You should not put anything  into a web page that is based on user input (from a form) without  checking to make sure it doesn't include Javascript.</P>  <P>For a more complete description of the problem, check out  <A HREF=../../../../../www.cert.org/advisories/CA-2000-02.html>http://www.cert.org/advisories/CA-2000-02.html</A></P>  </TD></TR><TR><TD COLSPAN=2><BR> <HR WIDTH=80%><BR></TD></TR><TR BGCOLOR=#ddeeff>  <TD VALIGN=TOP CLASS=label>Question:</TD>  <TD CLASS=qa><P>Help! My perl CGI program won't run on  cgi.cs.rpi.edu, but it runs on some other web server.  I've checked permissions, the name, the path to perl, etc. </P>  </TD></TR><TR BGCOLOR=#ffeedd>  <TD VALIGN=TOP CLASS=label>Answer:</TD>  <TD CLASS=qa><P>If your file came from a PC, it probably contains  CRLF marking the end of lines, instead of just LFs (which is what  the shell expects). Although perl doesn't care about this, the shell  does, so it probably is not starting up perl. The simple fix is to  run the program <CODE>dos2unix</CODE> on your file - this will strip  the CRs from each line. Usage is <CODE>dos2unix filename > newfile</CODE>. </P>  </TD></TR><TR><TD COLSPAN=2><BR> <HR WIDTH=80%><BR></TD></TR><TR BGCOLOR=#ddeeff>  <TD VALIGN=TOP CLASS=label>Question:</TD>  <TD CLASS=qa><P>I can't seem to log on to cgi.cs.rpi.edu, how do I   create/test my CGI program?  </P>  </TD></TR><TR BGCOLOR=#ffeedd>  <TD VALIGN=TOP CLASS=label>Answer:</TD>  <TD CLASS=qa><P>You don't need to log on to cgi.cs.rpi.edu, just   put your file(s) in your public.html directory. When testing your  program from a browser, use cgi.cs.rpi.edu in the URL. The http  server running on cgi.cs.rpi.edu knows where your files are.  </P>  </TD></TR><TR><TD COLSPAN=2><BR> <HR WIDTH=80%><BR></TD></TR><!--<TR><TD COLSPAN=2><BR> <HR WIDTH=80%><BR></TD></TR><TR BGCOLOR=#ddeeff>  <TD VALIGN=TOP CLASS=label>Question:</TD>  <TD CLASS=qa><P> </P>  </TD></TR><TR BGCOLOR=#ffeedd>  <TD VALIGN=TOP CLASS=label>Answer:</TD>  <TD CLASS=qa><P> </P>  </TD></TR><TR><TD COLSPAN=2><BR> <HR WIDTH=80%><BR></TD></TR>--></TABLE>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -