The problem I'm having is that when I receive that error:
That the rest of the commands do not run... And it seems, that after it receives that error that even if someone is streaming... The bot can not connect to the host.[21:13] Tcl error [ListenersCommand]: couldn't open socket: host is unreachable
So, my question is 2 fold.
1). How do I check for errors on the read to the web page and make the rest of the code in the paragraph work.
2). Why doesn't it connect to the web page after I know that it is responding. And yes, it will connect ok to the web page most of the time.
Code: Select all
foreach lcl_URL_Port_type $gbl_ary_check_web_pages {
set lcl_URL_fields [split $lcl_URL_Port_type ":"]
set lcl_URL [lindex $lcl_URL_fields 0]
set lcl_Port [lindex [split [lindex $lcl_URL_fields 1] "~"] 0]
set lcl_StreamWebPageScoket [socket $lcl_URL $lcl_Port]
# I have no idea what this [censored] does. Not a clue
puts -nonewline $lcl_StreamWebPageScoket "GET /7.html HTTP/1.1\nAccept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-sh
ockwave-flash, */*\nAccept-Language: en-us\nAccept-Encoding: gzip, deflate\nUser-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; T312461; (R1 1.3); .NE
T CLR 1.0.3705; .NET CLR 1.1.4322)\nHost: www.awesomechat.net\nConnection: Keep-Alive\n\n"
flush $lcl_StreamWebPageScoket
while {![eof $lcl_StreamWebPageScoket]} {set line [gets $lcl_StreamWebPageScoket]
set lcl_crap "body"
set lcl_Start 0
set lcl_End 0
if { [string match *$lcl_crap* $line] } {
droolin[/code]