Can I run a CGI script without returning a new page to the browser?
Submitted by: AdministratorYes, but think carefully first: How are your readers going to know
that their "submit" has succeeded? They may hit 'submit' many times!
The correct solution according to the HTTP specification is to
return HTTP status code 204. As an NPH script, this would be:
#!/bin/sh
# do processing (or launch it as background job)
echo "HTTP/1.0 204 No Change"
echo
Submitted by: Administrator
that their "submit" has succeeded? They may hit 'submit' many times!
The correct solution according to the HTTP specification is to
return HTTP status code 204. As an NPH script, this would be:
#!/bin/sh
# do processing (or launch it as background job)
echo "HTTP/1.0 204 No Change"
echo
Submitted by: Administrator
Read Online CGI Programming Job Interview Questions And Answers
Top CGI Programming Questions
☺ | What is a CGI bin directory? |
☺ | Can I pass JavaScript variables to a CGI Perl program? |
☺ | How can I stop my CGI script reading and writing files as nobody? |
☺ | How can I run my CGI program live in a debugger? |
☺ | What do I absolutely need to know in CGI? |
Top Coding/Programming Categories
☺ | Python Interview Questions. |
☺ | OOP Interview Questions. |
☺ | Software engineering Interview Questions. |
☺ | PHP Interview Questions. |
☺ | VBA (Visual Basic for Applications) Interview Questions. |