httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Covener <>
Subject Re: [users@httpd] cgi http complete header
Date Wed, 15 Apr 2009 14:25:21 GMT
On Wed, Apr 15, 2009 at 4:36 AM, Ruben Lihet <> wrote:
> Hello,
> I am writing a nph cgi script in c++ and I'm running it through apache
> 2.2 on linux. I want to read a certain part of the request-header that
> is not available as an environment variable. That would  be the Range:
> ... request. How can I read that ? To be clear: I'm sending the client
> that I accept bytes ranges with the header: Accept-Ranges: bytes and
> then I expect from the client a request for a specific range, though a
> header sent by him like Range: ... . How do I read this in my c++
> client ? I want to know what bytes to send to the client.

I don't think CGI has a an answer for this.

You could easily add the header you're interested in to the
environment via mod_rewrite and the [E=...] flag, and read that
environment variable from your CGI script.
Eric Covener

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message