Kelvin Wu wrote:
> hello,
> 
> 
> 1, how to use http 1.1 via IO::Socket?

Create a tcp connection to the server using IO::Socket->new and send the
HTTP request. Read the response and handle it appropriately. Better yet, use
a higher-level module like LWP::Simple or LWP::UserAgent for this.

> 
> 2, if i have a script like this:
> &connectserver();
> &answerserver();
> &closeserver ();

Erm, don't write subroutine calls like that anymore. Lose the &'s.

> 
> how to do a parallel processing while waiting for server response?
> use fork? 

That's an easy way to manage it.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to