On Wed, Nov 02, 2005 at 11:57:45AM +0800, gwen wrote:
> please forgive me for my ignorance...
> i'm wrting a small http proxy/forwarder using perl and i'm having problems
> handling binary data like images. They load very slowly if not at all. ^_^
> i've tried using binmode but got the same results.
> how do i go about this?
It's hard to tell without seeing your code. If you really want to
implement a pure perl http proxy, have a look at HTTP::Proxy[1].
In CPAN, you can see the sources of a perl module online by clicking
on the Source link on its POD-converted-to-html page.
If you want a *faster* implementation, you may use mod_perl + mod_proxy.
mod_perl is quite hard to understand at first, but you'll never regret
learning it. Because with mod_perl you get finer control of apache. I
guess you can't do that with other scripting language
(/^(?!perl).{3,6}$/) :-P
[1] http://search.cpan.org/dist/HTTP-Proxy/
--
$_=q:; # SHERWIN #
70;72;69;6e;74;20;
27;4a;75;73;74;20;
61;6e;6f;74;68;65;
72;20;50;65;72;6c;
20;6e;6f;76;69;63;
65;27;:;;s=~?(..);
?=pack q$C$,hex$1;
;;;=egg;;;;eval;;;
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph