How to retrieve the custom variants from HTTP request header by

--000e0cd6d098ffcd64048319d0ec
Content-Type: text/plain; charset=ISO-8859-1

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

--000e0cd6d098ffcd64048319d0ec
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hi,<div><br></div><div>In mod_perl, i can get the custom variants which sto=
red in header =A0from %ENV directly,</div><div>but it seems not works in mo=
d_perl2.</div><div><br></div><div>Any idea.</div><div><br></div><div>thanks=
!!</div>
<div><br></div><div>-LQ</div>

--000e0cd6d098ffcd64048319d0ec--
lq jimmy [ Mi, 31 März 2010 16:46 ] [ ID #2037276 ]

Re: How to retrieve the custom variants from HTTP request header by mod_perl2?

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_Se tupEnv_

--
Michael.Ludwig (#) XING.com
Michael Ludwig [ Mi, 31 März 2010 17:45 ] [ ID #2037277 ]

Re: How to retrieve the custom variants from HTTP request header by

--000e0cd4be5a7825aa0483282c26
Content-Type: text/plain; charset=ISO-8859-1

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 <michael.ludwig [at] 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_Se tupEnv_
>
> --
> Michael.Ludwig (#) XING.com
>
>

--000e0cd4be5a7825aa0483282c26
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Thanks for your attention.<br><br>But looks like Options "SetupEnv&quo=
t; is use for storing global constants into hash table %ENV.<br><br>My prob=
lem is that i don't know how to retrieve the parameters storing in HTTP=
request header.<br>
<br>Example:<br>I received a bytereange request, header Content:<br>Content=
-Type: text/plain<br>Content-Length: 1024<br>Range:=A0 bytes=3D0-300,<br><b=
r>How can i retrieve "bytes=3D0-300" from the header in mod_perl2=
? <br>
<br>=A0<br><br><br><br><div class=3D"gmail_quote">2010/3/31 Michael Ludwig =
<span dir=3D"ltr"><<a href=3D"mailto:michael.ludwig [at] xing.com">michael.lu=
dwig [at] xing.com</a>></span><br><blockquote class=3D"gmail_quote" style=3D"=
margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); paddi=
ng-left: 1ex;">
Am 31.03.2010 um 16:46 schrieb lq jimmy:<br>
<div class=3D"im">><br>
> In mod_perl, i can get the custom variants which stored in header =A0f=
rom %ENV directly,<br>
> but it seems not works in mod_perl2.<br>
<br>
</div>Look here:<br>
<br>
<a href=3D"http://perl.apache.org/docs/2.0/user/config/config.html#C_SetupE=
nv_" target=3D"_blank">http://perl.apache.org/docs/2.0/user/confi g/config.h=
tml#C_SetupEnv_</a><br>
<font color=3D"#888888"><br>
--<br>
Michael.Ludwig (#) XING.com<br>
<br>
</font></blockquote></div><br>

--000e0cd4be5a7825aa0483282c26--
lq jimmy [ Do, 01 April 2010 09:54 ] [ ID #2037442 ]

Re: How to retrieve the custom variants from HTTP request headerby mod_perl2?

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
aw [ Do, 01 April 2010 10:29 ] [ ID #2037443 ]

Re: How to retrieve the custom variants from HTTP request header by

--000e0cd70d3e148a87048328d66b
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Thank you very much!

2010/4/1 Andr=E9 Warnier <aw [at] ice-sa.com>

> lq jimmy wrote:
>
>> Thanks for your attention.
>>
>> But looks like Options "SetupEnv" is use for storing global constants in=
to
>> hash table %ENV.
>>
>> My problem is that i don't know how to retrieve the parameters storing i=
n
>> HTTP request header.
>>
>> Example:
>> I received a bytereange request, header Content:
>> Content-Type: text/plain
>> Content-Length: 1024
>> Range: bytes=3D0-300,
>>
>> How can i retrieve "bytes=3D0-300" from the header in mod_perl2?
>>
>> $r->headers_in()
> in http://perl.apache.org/docs/2.0/api/Apache2/RequestRec.html
>
>
>

--000e0cd70d3e148a87048328d66b
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Thank you very much!<br><br><div class=3D"gmail_quote">2010/4/1 Andr=E9 War=
nier <span dir=3D"ltr"><<a href=3D"mailto:aw [at] ice-sa.com">aw [at] ice-sa.com</=
a>></span><br><blockquote class=3D"gmail_quote" style=3D"margin: 0pt 0pt=
0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class=3D"im">lq jimmy wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin: 0pt 0pt 0pt 0.8ex; borde=
r-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Thanks for your attention.<br>
<br>
But looks like Options "SetupEnv" is use for storing global const=
ants into<br>
hash table %ENV.<br>
<br>
My problem is that i don't know how to retrieve the parameters storing =
in<br>
HTTP request header.<br>
<br>
Example:<br>
I received a bytereange request, header Content:<br>
Content-Type: text/plain<br>
Content-Length: 1024<br>
Range: =A0bytes=3D0-300,<br>
<br>
How can i retrieve "bytes=3D0-300" from the header in mod_perl2?<=
br>
<br>
</blockquote></div>
$r->headers_in()<br>
in <a href=3D"http://perl.apache.org/docs/2.0/api/Apache2/RequestRec.html" =
target=3D"_blank">http://perl.apache.org/docs/2.0/api/Apache 2/RequestRec.ht=
ml</a><br>
<br>
<br>
</blockquote></div><br>

--000e0cd70d3e148a87048328d66b--
lq jimmy [ Do, 01 April 2010 10:42 ] [ ID #2037444 ]
Webserver » gmane.comp.apache.mod-perl » How to retrieve the custom variants from HTTP request header by

Vorheriges Thema: Build Failure on Perl 5.12 RC3
Nächstes Thema: Authentication handlers in a proxy setting