Header formats in get.pl
Darrell Berry (darrell@shrine.cyber.ad.jp)
Mon, 1 May 1995 17:54:53 +1000
What is the significance of the block
[snip]
if ($headers)
{
print($Out $headers);
}
else
{
print($Out "HTTP/1.0 $response $wwwerror'RespMessage{$response}\n");
foreach $hd (keys(%headers))
{
next if ($hd =~ m#^[A-Z]#);
print($Out "$hd: $headers{$hd}\n");
}
}
print($Out "\n");
[snip]
in the get.pl example?
i.e.
When will the headers come back in the associative array rather than the
string? (When I test it with the GET method, they always come back as
$headers)
Is there a routine in the libraries somewhere for parsing this string back
into an associative array anyway, as the string version isn't much use for
anything...or am I missing the point?
Thanks...
------------------------------------------------------------------------------
darrell berry : i r i s / e
darrell@shrine.cyber.ad.jp : 7-3-48-1 shinjuku shinjuku-ku tokyo 160 japan
..............................................................................
http://shrine.cyber.ad.jp/~darrell/irise.html
------------------------------------------------------------------------------