This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Problem with http

Old posts that have not been replied to for several years.
Locked
User avatar
AUTIST
Voice
Posts: 20
Joined: Sun Feb 01, 2004 8:52 am

Problem with http

Post by AUTIST »

Hi, guys. Sorry for ma english.. %)
I have an eggdrop in our Belorussina irc-network, and I want to download weather, tv-program from belorussian sites.
And when I starts writing script, I got a problem.
This is the begining of my script:
set token [::http::geturl $query]
if {([::http::status $token] == "ok")} {
upvar #0 $token state
set data [::http::data $token]
......

Some times when a input public command in the channel, the bot has quit with message (Read error: Connection reset by peer) and some times with the message (Ping timeout: 182 seconds)
help me if you can please...
User avatar
GodOfSuicide
Master
Posts: 463
Joined: Mon Jun 17, 2002 8:00 pm
Location: Austria

Post by GodOfSuicide »

the HTTP request timesout...check the timeout feature
User avatar
strikelight
Owner
Posts: 708
Joined: Mon Oct 07, 2002 10:39 am
Contact:

Post by strikelight »

Use the HTTP package in non-blocking mode with the -command option. (or use egghttp.tcl).
User avatar
AUTIST
Voice
Posts: 20
Joined: Sun Feb 01, 2004 8:52 am

Post by AUTIST »

Thanx,
It works with egghttp.tcl
Locked