Re: cgi http complete header

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Apr 15, 2009 at 4:36 AM, Ruben Lihet <evilpus@xxxxxxxxx> 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@xxxxxxxxx

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



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux