You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Max Rodkin <ma...@mail.ru> on 2007/06/05 14:41:09 UTC

how to implement input filter for easy way?

Hi all,
i need to convert request:
"$355632000166323,1,1,040202,093633,E12129.2252,N2459.8891,00161,0.0100,147,
07*37!"
into:
"GET 
/main.php?str=$355632000166323,1,1,040202,093633,E12129.2252,N2459.8891,00161,0.0100,147,
07*37!  HTTP/1.1
Host: localhost"
as i understood, it`s possible in several ways:
1.RequestHeader Directive , apache2 only.
2.Multiprotocol Support 
http://perl.apache.org/docs/2.0/user/handlers/protocols.html  , apache2 only
3.Apache Module mod_headers , apache2 only
i know it in theory only, and have no enought skills in apache 
administration/perl coding.
Please, show me best practice way to solve my question.
The my hosting phpinfo information:
"
      Apache Version  Apache/1.3.34 (Unix) mod_fastcgi/2.4.0 PHP/4.4.0
mod_deflate/1.0.21 rus/PL30.22
      Loaded Modules  mod_fastcgi, mod_php4, mod_deflate, mod_auth,
mod_access, mod_rewrite, mod_alias, mod_userdir, mod_actions, mod_cgi,
mod_dir, mod_autoindex, mod_include, mod_info, mod_status, mod_negotiation,
mod_mime, mod_log_referer, mod_log_agent, mod_log_config, mod_env,
mod_charset, http_core
"
Respect, Max Rodkin





Re: how to implement input filter for easy way?

Posted by Max Rodkin <ma...@mail.ru>.
Hi, Jonathan
Apache mod_rewrite not usable, IMHO, because
"Mod_rewrite uses two of these hooks: the URL-to-filename translation hook 
which is used after the HTTP request has been read but before any 
authorization starts", i.e. http request is obligatory needed.... my request 
is not http... Well, i did try with mod_rewrite but get nothing good, apache 
responce, request not HTTP.


"Jonathan Vanasco" <jv...@2xlp.com> ???????/???????? ? ???????? 
?????????: news:837B7D96-7FAB-48E0-9A8B-AB017E6C8166@2xlp.com...
>
> you should be able to do that with a simple redirect, apache1 or 2
>
> look up mod_rewrite or modrewrite
>
> you don't need perl to do that, and since you're running php in  apache, i 
> would recommend against it .
>
>
> On Jun 5, 2007, at 8:41 AM, Max Rodkin wrote:
>
>> Hi all,
>> i need to convert request:
>> "$355632000166323,1,1,040202,093633,E12129.2252,N2459.8891,00161,0.010 
>> 0,147,
>> 07*37!"
>> into:
>> "GET
>> /main.php?str= 
>> $355632000166323,1,1,040202,093633,E12129.2252,N2459.8891,00161,0.0100 
>> ,147,
>> 07*37!  HTTP/1.1
>> Host: localhost"
>> as i understood, it`s possible in several ways:
>> 1.RequestHeader Directive , apache2 only.
>> 2.Multiprotocol Support
>> http://perl.apache.org/docs/2.0/user/handlers/protocols.html  ,  apache2 
>> only
>> 3.Apache Module mod_headers , apache2 only
>> i know it in theory only, and have no enought skills in apache
>> administration/perl coding.
>> Please, show me best practice way to solve my question.
>> The my hosting phpinfo information:
>> "
>>       Apache Version  Apache/1.3.34 (Unix) mod_fastcgi/2.4.0 PHP/4.4.0
>> mod_deflate/1.0.21 rus/PL30.22
>>       Loaded Modules  mod_fastcgi, mod_php4, mod_deflate, mod_auth,
>> mod_access, mod_rewrite, mod_alias, mod_userdir, mod_actions, mod_cgi,
>> mod_dir, mod_autoindex, mod_include, mod_info, mod_status, 
>> mod_negotiation,
>> mod_mime, mod_log_referer, mod_log_agent, mod_log_config, mod_env,
>> mod_charset, http_core
>> "
>> Respect, Max Rodkin
>>
>>
>>
>>
>
> // Jonathan Vanasco
>
> | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  - - 
>  - - - - - - - - - - - - - - - - -
> |   CEO/Founder SyndiClick Networks
> | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  - - 
>  - - - - - - - - - - - - - - - - -
> |      FindMeOn.com - The cure for Multiple Web Personality Disorder
> |      Web Identity Management and 3D Social Networking
> | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  - - 
>  - - - - - - - - - - - - - - - - -
> |      RoadSound.com - Tools For Bands, Stuff For Fans
> |      Collaborative Online Management And Syndication Tools
> | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  - - 
>  - - - - - - - - - - - - - - - - -
>
>
> 




Re: how to implement input filter for easy way?

Posted by Jonathan Vanasco <jv...@2xlp.com>.
you should be able to do that with a simple redirect, apache1 or 2

look up mod_rewrite or modrewrite

you don't need perl to do that, and since you're running php in  
apache, i would recommend against it .


On Jun 5, 2007, at 8:41 AM, Max Rodkin wrote:

> Hi all,
> i need to convert request:
> "$355632000166323,1,1,040202,093633,E12129.2252,N2459.8891,00161,0.010 
> 0,147,
> 07*37!"
> into:
> "GET
> /main.php?str= 
> $355632000166323,1,1,040202,093633,E12129.2252,N2459.8891,00161,0.0100 
> ,147,
> 07*37!  HTTP/1.1
> Host: localhost"
> as i understood, it`s possible in several ways:
> 1.RequestHeader Directive , apache2 only.
> 2.Multiprotocol Support
> http://perl.apache.org/docs/2.0/user/handlers/protocols.html  ,  
> apache2 only
> 3.Apache Module mod_headers , apache2 only
> i know it in theory only, and have no enought skills in apache
> administration/perl coding.
> Please, show me best practice way to solve my question.
> The my hosting phpinfo information:
> "
>       Apache Version  Apache/1.3.34 (Unix) mod_fastcgi/2.4.0 PHP/4.4.0
> mod_deflate/1.0.21 rus/PL30.22
>       Loaded Modules  mod_fastcgi, mod_php4, mod_deflate, mod_auth,
> mod_access, mod_rewrite, mod_alias, mod_userdir, mod_actions, mod_cgi,
> mod_dir, mod_autoindex, mod_include, mod_info, mod_status,  
> mod_negotiation,
> mod_mime, mod_log_referer, mod_log_agent, mod_log_config, mod_env,
> mod_charset, http_core
> "
> Respect, Max Rodkin
>
>
>
>

// Jonathan Vanasco

| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - - - - -
|   CEO/Founder SyndiClick Networks
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - - - - -
|      FindMeOn.com - The cure for Multiple Web Personality Disorder
|      Web Identity Management and 3D Social Networking
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - - - - -
|      RoadSound.com - Tools For Bands, Stuff For Fans
|      Collaborative Online Management And Syndication Tools
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - - - - -