httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Covener <cove...@gmail.com>
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 <evilpus@gmail.com> 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
covener@gmail.com

---------------------------------------------------------------------
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: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message