Re: impact of move to http/1.0

Tony Sanders ([email protected])
Wed, 25 Aug 1993 10:45:44 -0500


> fields = sscanf(line_buffer, "%20s%d",
> server_version,
> &server_status);
Ugh!

> So.... does anyone have any other ideas on how to handle this
> situation?
Split the line on spaces and check the third field (if one exists)
and optionally make sure it says `HTTP/1.0'.

For example, here is my code from Plexus:
local($method, $uri, $version, $waste) = split(" ", $_, 4);
&parse_headers(*in_headers) if $version;

--sanders