OK, but can mod_rewrite read the http-header ? I know mod_rewrite can read get parameters, but I don't know if it's capable of reading the http header. 2009/4/15 Eric Covener <covener@xxxxxxxxx>: > 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 > > -- Lihet Ruben Tel: +40 746 037 017 email: lihet.ruben@xxxxxxxxx, evilpus@xxxxxxxxx Web: http://www.faultlessp.net/ --------------------------------------------------------------------- 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