<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/16723" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2009-03-24T14:30:16-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/16723</id>

		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2009-03-24T14:30:16-04:00</updated>

		<published>2009-03-24T14:30:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=88072#p88072</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=88072#p88072"/>
		<title type="html"><![CDATA[http package and FreeBSD]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=88072#p88072"><![CDATA[
Also, if you'd like even further debugging info, make use of the ::errorInfo and ::errorCode variables.<br><br>A quick sample that logs additional data if <em class="text-italics">debug</em> is set:<div class="codebox"><p>Code: </p><pre><code>if {![catch {::http::geturl $url -timeout 15000} data]} {  pDealWithData} else {  putserv "PRIVMSG $chan :Error in grabbing url: $data"  if {[info exists ::debug]} {    putlog "Error while reading $url: $data"    putlog "  error code: $::errorCode"    putlog "  stack trace: $::errorInfo"  }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Tue Mar 24, 2009 2:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[arfer]]></name></author>
		<updated>2009-03-24T06:05:37-04:00</updated>

		<published>2009-03-24T06:05:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=88052#p88052</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=88052#p88052"/>
		<title type="html"><![CDATA[http package and FreeBSD]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=88052#p88052"><![CDATA[
OK, you are correct, I'll mod the script as you suggested and try to find the last person to report an error. I don't have a FreeBSD shell.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5705">arfer</a> — Tue Mar 24, 2009 6:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2009-03-23T12:20:54-04:00</updated>

		<published>2009-03-23T12:20:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=88040#p88040</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=88040#p88040"/>
		<title type="html"><![CDATA[http package and FreeBSD]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=88040#p88040"><![CDATA[
Arfer:<br>Just saying that the error message you get from the http:geturl would be very helpful tracking down where things go wrong.. be it tcl, the http-package, freebsd, or just random errors. At least it gives a hint where to look.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Mon Mar 23, 2009 12:20 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dj-zath]]></name></author>
		<updated>2009-03-23T11:51:38-04:00</updated>

		<published>2009-03-23T11:51:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=88037#p88037</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=88037#p88037"/>
		<title type="html"><![CDATA[http package and FreeBSD]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=88037#p88037"><![CDATA[
I'm also using FreeBSD.. and I, too, am having problems with the http package..  actually opening/closing connections in general.. <br><br>oh BOY!<br><br>NML:  I figured out whats causing the INDEFINATE freeze in eggdrop..  the freaking <em class="text-italics">handshaking</em>! I currently took your code examples and , "piece-by-piece".. I have tested each section.. and found that if its currently connected, then disconnects.. it NEVER finishes the closure!<br><br>oops, sorry.. this is meant for the other thread... <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":-)" title="Smile"><br><br>DjZ<br><img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10318">dj-zath</a> — Mon Mar 23, 2009 11:51 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[arfer]]></name></author>
		<updated>2009-03-20T13:18:51-04:00</updated>

		<published>2009-03-20T13:18:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87980#p87980</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87980#p87980"/>
		<title type="html"><![CDATA[http package and FreeBSD]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87980#p87980"><![CDATA[
OK nml375, point taken.<br><br>For the moment though I'm looking for the FreeBSD issue, if there is one.<br><br>scotteh, norm is 2.5.x but on one of the FreeBSD installations I noticed it was 2.7.x<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5705">arfer</a> — Fri Mar 20, 2009 1:18 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2009-03-20T13:18:05-04:00</updated>

		<published>2009-03-20T13:18:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87979#p87979</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87979#p87979"/>
		<title type="html"><![CDATA[http package and FreeBSD]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87979#p87979"><![CDATA[
May I suggest a different approach to that code?<br><div class="codebox"><p>Code: </p><pre><code>if {![catch {::http::geturl $url -timeout 15000} data]} { pDealWithData} else { putserv "PRIVMSG $chan :Error in grabbing url: $data"}</code></pre></div>Doing it this way, leaves us with the output from <strong class="text-strong">::http::geturl</strong> in <em class="text-italics">data</em> if the request is successful, and the error message in <em class="text-italics">data</em> if we're not. Also, saves us from cluttering the code with unneeded nested function calls.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Fri Mar 20, 2009 1:18 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[scotteh]]></name></author>
		<updated>2009-03-20T12:38:10-04:00</updated>

		<published>2009-03-20T12:38:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87975#p87975</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87975#p87975"/>
		<title type="html"><![CDATA[http package and FreeBSD]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87975#p87975"><![CDATA[
What version of the package is getting loaded? Could be loading 1.0.<br><br>Try using:<div class="codebox"><p>Code: </p><pre><code>package require http 2</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7303">scotteh</a> — Fri Mar 20, 2009 12:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[arfer]]></name></author>
		<updated>2009-03-20T07:24:40-04:00</updated>

		<published>2009-03-20T07:24:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87972#p87972</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87972#p87972"/>
		<title type="html"><![CDATA[http package and FreeBSD]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87972#p87972"><![CDATA[
I wrote a script using http package that works fine with Eggdrop on what I suppose could be called normal linux distros. Several examples would have me conclude that with Eggdrop on FreeBSD it does not function.<br><br>The act of trying to grab the url is caught and outputs an error, typically by the following statement :-<br><div class="codebox"><p>Code: </p><pre><code>if {![catch {set data [::http::geturl $url -timeout 15000]}]} {    pDealWithData} else {putserv "PRIVMSG $chan :error in grabbing url"}</code></pre></div>Just to prove http is present, it does not fail at the statement :-<br><div class="codebox"><p>Code: </p><pre><code>package require http</code></pre></div>Are there known issues with FreeBSD/http?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5705">arfer</a> — Fri Mar 20, 2009 7:24 am</p><hr />
]]></content>
	</entry>
	</feed>
