You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by lq jimmy <lq...@gmail.com> on 2010/03/31 16:46:50 UTC
How to retrieve the custom variants from HTTP request header by
mod_perl2?
Hi,
In mod_perl, i can get the custom variants which stored in header from %ENV
directly,
but it seems not works in mod_perl2.
Any idea.
thanks!!
-LQ
Re: How to retrieve the custom variants from HTTP request header by
mod_perl2?
Posted by lq jimmy <lq...@gmail.com>.
Thank you very much!
2010/4/1 André Warnier <aw...@ice-sa.com>
> lq jimmy wrote:
>
>> Thanks for your attention.
>>
>> But looks like Options "SetupEnv" is use for storing global constants into
>> hash table %ENV.
>>
>> My problem is that i don't know how to retrieve the parameters storing in
>> HTTP request header.
>>
>> Example:
>> I received a bytereange request, header Content:
>> Content-Type: text/plain
>> Content-Length: 1024
>> Range: bytes=0-300,
>>
>> How can i retrieve "bytes=0-300" from the header in mod_perl2?
>>
>> $r->headers_in()
> in http://perl.apache.org/docs/2.0/api/Apache2/RequestRec.html
>
>
>
Re: How to retrieve the custom variants from HTTP request header
by mod_perl2?
Posted by André Warnier <aw...@ice-sa.com>.
lq jimmy wrote:
> Thanks for your attention.
>
> But looks like Options "SetupEnv" is use for storing global constants into
> hash table %ENV.
>
> My problem is that i don't know how to retrieve the parameters storing in
> HTTP request header.
>
> Example:
> I received a bytereange request, header Content:
> Content-Type: text/plain
> Content-Length: 1024
> Range: bytes=0-300,
>
> How can i retrieve "bytes=0-300" from the header in mod_perl2?
>
$r->headers_in()
in http://perl.apache.org/docs/2.0/api/Apache2/RequestRec.html
Re: How to retrieve the custom variants from HTTP request header by
mod_perl2?
Posted by lq jimmy <lq...@gmail.com>.
Thanks for your attention.
But looks like Options "SetupEnv" is use for storing global constants into
hash table %ENV.
My problem is that i don't know how to retrieve the parameters storing in
HTTP request header.
Example:
I received a bytereange request, header Content:
Content-Type: text/plain
Content-Length: 1024
Range: bytes=0-300,
How can i retrieve "bytes=0-300" from the header in mod_perl2?
2010/3/31 Michael Ludwig <mi...@xing.com>
> Am 31.03.2010 um 16:46 schrieb lq jimmy:
> >
> > In mod_perl, i can get the custom variants which stored in header from
> %ENV directly,
> > but it seems not works in mod_perl2.
>
> Look here:
>
> http://perl.apache.org/docs/2.0/user/config/config.html#C_SetupEnv_
>
> --
> Michael.Ludwig (#) XING.com
>
>
Re: How to retrieve the custom variants from HTTP request header by
mod_perl2?
Posted by Michael Ludwig <mi...@xing.com>.
Am 31.03.2010 um 16:46 schrieb lq jimmy:
>
> In mod_perl, i can get the custom variants which stored in header from %ENV directly,
> but it seems not works in mod_perl2.
Look here:
http://perl.apache.org/docs/2.0/user/config/config.html#C_SetupEnv_
--
Michael.Ludwig (#) XING.com