Skip to main content.
home | support | download

Back to List Archive

(no subject)

From: 97909585d <97909585d(at)not-real.polyu.edu.hk>
Date: Tue Feb 22 2000 - 07:41:22 GMT
#Write out important meta-data.  This includes the HTTP #code. Depending on 
the code, we write out other data.  #Redirects have the location printed, 
everything 
# else gets the content-type.

open( RESP, ">$localpath.response" ) || die( "Could not open response file 
$localpath.response" ); 
print RESP $response->code() . "\n"; 
if( $response->code() == RC_OK ) { 
print RESP $response->header( "content-type" ) . "\n"; } elsif( 
$response->is_redirect() ) { 
print RESP $response->header( "location" ) . "\n"; 
}

What is the result of 
print RESP $response->header("content-type") . "\n"; ? Get what?
where does the result go in part of C language?http.c or other places?

 
Received on Tue Feb 22 02:48:19 2000