[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] LWP - close connection



on 11/10/1999 8:52 AM, Greenblatt & Seay at g-s@navix.net wrote:

>> on 11/10/1999 2:04 AM, Greenblatt & Seay at g-s@navix.net wrote:
>> 
>>> I have a MacPerl program that successfully uses HTTP::Request  and
>>> LWP::UserAgent to open an internet connection and download a certain web
>>> page.
>>> 
>>> How do I get MacPerl to close the connection?
>>> 
>>> Thanks.
>> 
>> 
> 
>> Bill Jones replied:
>> 
>> Use 'close' on the client side.
>> 
> 
> Close what? As you can see in the simplified code below there is no file
> handle to close.

Closest I can get is either X-Died or something like:

$ua->timeout([$secs])

Get/set the timeout value in seconds. The default timeout() value is 180
seconds, i.e. 3 minutes.


HTH,
____________________________________________________________________
Bill Jones * Systems Programmer * http://www.fccj.org/cgi/mail?sneex



# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org