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/05/24 13:54:49 UTC
non-http request service by mod_perl or mod_cgi or else
Hi all,
i have a question.
is ir possible to service non-http request , for example:
"$355632000166323,1,1,040202,093633,E12129.2252,N2459.8891,00161,0.0100,147,
07*37!"
This request not contain "GET /cgi-bin/main.cgi HTTP/1.1" headers, and
can`t service by apache in usual way.
In http://perl.apache.org/outstanding/success_stories/sms_server.html i did
read, it`s possible, but not understand all, exactly:
1. imho, apache will reject non-http request
2.SCRIPT_NAME cgi variable not defined - it`s not problem, apache can
configured to cgi-script by default
3. what cgi variable will contain data string?
4. can cgi script return just clear "$OK!" to client? Without apache addons
to answer...
Respect, Max Rodkin
Re: non-http request service by mod_perl or mod_cgi or else
Posted by Max Rodkin <ma...@mail.ru>.
Hi,Perrin
yes, Perrin, it`s very good article, but one question:
is described pre_connection handler implementation method suitable for my
hosting?
The 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
GATEWAY_INTERFACE CGI/1.1
"
i not see mod_perl and apache not 2... it`s not usable for my task? What`s
you think?
Respect, Max Rodkin
"Perrin Harkins" <pe...@elem.com> ???????/???????? ? ???????? ?????????:
news:66887a3d0705250610oc87fe93m9e174321211fc401@mail.gmail.com...
> On 5/24/07, Max Rodkin <ma...@mail.ru> wrote:
>> is ir possible to service non-http request , for example:
>> "$355632000166323,1,1,040202,093633,E12129.2252,N2459.8891,00161,0.0100,147,
>> 07*37!"
>
> Yes:
> http://perl.apache.org/docs/2.0/user/handlers/protocols.html
>
> - Perrin
>
Re: non-http request service by mod_perl or mod_cgi or else
Posted by Perrin Harkins <pe...@elem.com>.
On 5/24/07, Max Rodkin <ma...@mail.ru> wrote:
> is ir possible to service non-http request , for example:
> "$355632000166323,1,1,040202,093633,E12129.2252,N2459.8891,00161,0.0100,147,
> 07*37!"
Yes:
http://perl.apache.org/docs/2.0/user/handlers/protocols.html
- Perrin