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 to put the dash "
On Thu, Apr 16, 2009 at 2:52 PM, Ruben Lihet wrote:
> Where do I have to put the dash "-" ? In this rule:
>
> RewriteRule ^([^/\.]+)/?$ nph-main.cgi?lid=$1&header=%{HTTP:Range}
I don't really follow what you're doing with the rule, but I was
thinking more like:
RewriteCond %{HTTP:Range} (.*)
Re
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:
>
> Allow from all
> Options +Fo
On Thu, Apr 16, 2009 at 10:07 AM, Ruben Lihet wrote:
> please... help ?
> How canI get rid of the extra http headers apache is sending ?
Does it help if you use "-" (no quotes) for your substitution, just to
get the side-effect of the RewriteRule?
--
Eric Covener
cove...@gmail.com
---
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 because mod_rewrite i
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 because mod_rewrite is rewriting my url, the nph prefix for my
script is ignored, so apache add his own header like this:
HTTP/1.1 200
Okay, so ..
I made a little test. In the same directory with my cgi script I write
a .htaccess file containig this:
Allow from all
Options +FollowSymLinks
RewriteEngine on
RewriteRule ^([^/\.]+)/?$ nph-main.cgi?lid=$1&header=%{HTTP:Range}
The problem now is that when I call the script like this:
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 header, and copies its content to an environment
On Wed, 2009-04-15 at 17:40 +0300, Ruben Lihet wrote:
> 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.
>
http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewritecond
Other th
Ruben Lihet wrote:
OK, but can mod_rewrite read the http-header ?
That's exactly what Eric suggested.
mod_rewrite reads the http header, and copies its content to an
environment value, which your cgi program can just obtain from its
running environment.
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 a nph cgi script in c++ and I'm runni
On Wed, Apr 15, 2009 at 4:36 AM, Ruben Lihet 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. H
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
13 matches
Mail list logo