Re: [us...@httpd] cgi http complete header

2009-04-16 Thread Ruben Lihet
Yep, thats exactly what I needed. And it's very logical. When a range request is made, mod_rewrite sets an environment variable with the corresponding value. Thanks! Problem solved. 2009/4/16 Eric Covener : > On Thu, Apr 16, 2009 at 2:52 PM, Ruben Lihet wrote: >> Where do I have t

Re: [us...@httpd] cgi http complete header

2009-04-16 Thread Ruben Lihet
Where do I have to put the dash "-" ? In this rule: RewriteRule ^([^/\.]+)/?$ nph-main.cgi?lid=$1&header=%{HTTP:Range} 2009/4/15 Ruben Lihet : > Okay, so .. > I made a little test. In the same directory with my cgi script I write > a .htaccess file containig this: >

Re: [us...@httpd] cgi http complete header

2009-04-16 Thread Ruben Lihet
please... help ? How canI get rid of the extra http headers apache is sending ? 2009/4/16 Ruben Lihet : > I managed to get rid of the .htacces error. I had to add a > RedirectBase /cgi-bin directive to the .htacces and now it's working. > But another problem occured. > > Now

Re: [us...@httpd] cgi http complete header

2009-04-15 Thread Ruben Lihet
1 200 OK Date: Mon, 06 Apr 2009 23:58:47 GMT Server: Apache/2.2.3 (CentOS) Content-Length: 0 Connection: close Content-Type: text/plain; charset=UTF-8 How can I use mod_rewrite to pass the request-header to the nph-cgi and my script preserve its nph properties ? 2009/4/15 Ruben Lihet : >

Re: [us...@httpd] cgi http complete header

2009-04-15 Thread Ruben Lihet
rror] [client 192.168.18.1] File does not exist: /var/www/html/var Any hints what could it be ? Thanks again! 2009/4/15 Ruben Lihet : > great, thanks, than I'll stick to mod_rewrite and do some digging in the docs! > > 2009/4/15 André Warnier : >> Ruben Lihet wrote: >>> >

Re: [us...@httpd] cgi http complete header

2009-04-15 Thread Ruben Lihet
great, thanks, than I'll stick to mod_rewrite and do some digging in the docs! 2009/4/15 André Warnier : > Ruben Lihet wrote: >> >> OK, but can mod_rewrite read the http-header ? > > That's exactly what Eric suggested. > > mod_rewrite reads the http

Re: [us...@httpd] cgi http complete header

2009-04-15 Thread Ruben Lihet
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 : > On Wed, Apr 15, 2009 at 4:36 AM, Ruben Lihet wrote: >> Hello, >> >> I am writing

[us...@httpd] cgi http complete header

2009-04-15 Thread Ruben Lihet
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