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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HTTP Headers

Status
Not open for further replies.

Extension

Programmer
Nov 3, 2004
311
0
0
CA
Hi,

I would like to know how to retrieve (request) the HTTP headers. I've been reading some documentation about the LWP HTTP Headers module, but I can't find a way to print or manipulate the HTTP headers.

Thanks in advance.

 
fairly vague question, but the LWP::Simple module has the head() function

head($url)

Get document headers. Returns the following 5 values if successful: ($content_type, $document_length, $modified_time, $expires, $server)


------------------------------------------
- Kevin, perl coder unexceptional! [wiggle]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top