Re: How to set a proxy server.

2009-10-20 Thread John W. Krahn
Majian wrote: Dear list: Hello, I have a question on learning Perl . Please give me a help . The problem is : How can I split a string into chunks of size n bytes?Like this : #!/usr/bin/perl my $string = "1234567890abcdefghijABCDEFGHIJK"; my $n = 2;# $n is group size. my @groups =

Re: How to set a proxy server.

2009-10-20 Thread Jim Gibson
At 9:35 AM +0800 10/21/09, Majian wrote: Dear list: I have a question on learning Perl . Please give me a help . The problem is : How can I split a string into chunks of size n bytes?Like this : #!/usr/bin/perl my $string = "1234567890abcdefghijABCDEFGHIJK"; my $n = 2;# $n is group siz

Re: How to set a proxy server.

2009-10-20 Thread Majian
Dear list: I have a question on learning Perl . Please give me a help . The problem is : How can I split a string into chunks of size n bytes?Like this : #!/usr/bin/perl my $string = "1234567890abcdefghijABCDEFGHIJK"; my $n = 2;# $n is group size. my @groups = unpack "a$n" x (length( $st

How to set a proxy server.

2009-10-19 Thread Rob Coops
y %request = ( countryCode => 'FR', Number => '38488985771' ); my $answer = $checkVat->(%request); This works perfectly fine until I am in an environment where I am forced to use a proxy server. as I end up getting the same (no rout to host) reply I get when just t

Re: proxy server

2003-02-17 Thread Ramprasad A Padmanabhan
Mat Harris wrote: On Mon, Feb 17, 2003 at 05:34:23 +0530, Ramprasad wrote: talk about reinventing the wheel :-O Now when you have an excellent tool like squid why would anyone go to write his own proxy I want to be able to use a php webpage to authenticate the user to make it as transparen

Re: proxy server

2003-02-17 Thread Mat Harris
On Mon, Feb 17, 2003 at 05:34:23 +0530, Ramprasad wrote: > talk about reinventing the wheel :-O > > > Now when you have an excellent tool like squid why would anyone go to > write his own proxy > I want to be able to use a php webpage to authenticate the user to make it as transparent as possi

Re: proxy server

2003-02-17 Thread Ramprasad
Mat Harris wrote: i am trying to write a mini proxy server to authenticate and run some other checking on http requests before they are passed to a squid server. I have got the following program which works for very basic requests but cannot deal with forms or anything complex. I will detail

proxy server

2003-02-16 Thread Mat Harris
i am trying to write a mini proxy server to authenticate and run some other checking on http requests before they are passed to a squid server. I have got the following program which works for very basic requests but cannot deal with forms or anything complex. I will detail the problems after

problem with proxy server and modules installation

2003-01-07 Thread Prasad K M
Hi all, Firstly I wasn't able to test my perl scripts which used cgi/html/LWP cause I wasn't able to connect to the net. I guess some settings have to be done but not aware as to what...Please note that I am behind a proxy server. Secondly I had this problem while installing modules

FW: proxy server

2002-04-22 Thread Jackson, Harry
>-Original Message- >From: Todd Wade [mailto:[EMAIL PROTECTED]] > >Go get the Perl Cookbook. Very good advice in any weather. If you have not got it, get it, its a fantastic book and I am always turning to it. Harry ***

Re: proxy server

2002-04-22 Thread Todd Wade
"Conan Chai" <[EMAIL PROTECTED]> wrote in message 003301c1ea03$29edb410$0164a8c0@user1">news:003301c1ea03$29edb410$0164a8c0@user1... hi, >how do i read in the request from a browser? Go get the Perl Cookbook. Theres a whole section on being a TCP server. Its a little too complicated to discuss

proxy server

2002-04-22 Thread Conan Chai
hi, how do i read in the request from a browser? the browser is set to point to my proxy server. i have tried the following codes while(sysread($client,$request,1024) > 0) { #do something } and $bytes = sysread($client,$request,1024); if($bytes > 0) { #do something } obvious

Re: proxy server that listens on 2 ports

2002-04-19 Thread Michael Lamertz
On Fri, Apr 19, 2002 at 07:40:35PM +1000, Conan Chai wrote: > hi all, > i'm writing a simple proxy server that listens on 2 ports, 1 for browser and another >for admin client. the admin client is for administrative tasks such as adding new >users and reseting downloaded byt

proxy server that listens on 2 ports

2002-04-19 Thread Conan Chai
hi all, i'm writing a simple proxy server that listens on 2 ports, 1 for browser and another for admin client. the admin client is for administrative tasks such as adding new users and reseting downloaded bytes. i'm currently using the IO::Select module but this mode is blocking