On Wed, Apr 15, 2009 at 4:36 AM, Ruben Lihet <[email protected]> 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
[email protected]

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [email protected]
   "   from the digest: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to