Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

More help needed with HTTP header() function

Status
Not open for further replies.

SFBassman

Programmer
Jan 15, 2003
3
US
I want to require a re-post of form information before the user is allowed to access one of my web pages, and restrict the result page from being cached. One responder suggested using the HTTP header() function. I thank him/her for their help.

1) Is there a web page that EXPLAINS in DETAIL the format, syntax, and options for the 'header()' function of HTTP.

2) In a PERL script to generate a dynamic web page, what additional code is required or suggested before and after the command:
print header (-type=>'text/html',
-cache_control=>'no-cache',
-expires=>'-1d',
-nph);

Where does the following command enter into this solution?
print "Content-type: text/html\n\n";

What commands print the rest of the result page text ?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top