<?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/11445" />

	<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>2006-03-06T03:45:49-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Dark_Lancer]]></name></author>
		<updated>2006-03-06T03:45:49-04:00</updated>

		<published>2006-03-06T03:45:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=60895#p60895</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=60895#p60895"/>
		<title type="html"><![CDATA[Help: Topic -&gt; PHP via URL-Call [Solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=60895#p60895"><![CDATA[
so, i tried it.<br><br>and it works.<br><br>Thx for the help demond.<br><br>thread can be closed or [solved] <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7433">Dark_Lancer</a> — Mon Mar 06, 2006 3:45 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Dark_Lancer]]></name></author>
		<updated>2006-03-03T08:31:33-04:00</updated>

		<published>2006-03-03T08:31:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=60813#p60813</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=60813#p60813"/>
		<title type="html"><![CDATA[Help: Topic -&gt; PHP via URL-Call [Solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=60813#p60813"><![CDATA[
ok, i tried to connect via telnet, and it doesn't work.<br><br>How can I "recode" the script for Proxy use? In the Internet-options of internet-Explorer i have the settings for http/secure/ftp/gopher -proxy servers. http for example runs over port 8000.<br><br>Edit:<br><br>i think i found it. <br><a href="http://tmml.sourceforge.net/doc/tcl/http.html" class="postlink">http://tmml.sourceforge.net/doc/tcl/http.html</a><br>the http::config section, i think. i will try it on Monday<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7433">Dark_Lancer</a> — Fri Mar 03, 2006 8:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2006-03-03T02:32:28-04:00</updated>

		<published>2006-03-03T02:32:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=60798#p60798</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=60798#p60798"/>
		<title type="html"><![CDATA[Help: Topic -&gt; PHP via URL-Call [Solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=60798#p60798"><![CDATA[
try to connect to your webserver from your shell via telnet on port 80<br><br>if you are unable to, so is your bot<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Fri Mar 03, 2006 2:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Dark_Lancer]]></name></author>
		<updated>2006-03-02T05:46:29-04:00</updated>

		<published>2006-03-02T05:46:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=60770#p60770</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=60770#p60770"/>
		<title type="html"><![CDATA[Help: Topic -&gt; PHP via URL-Call [Solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=60770#p60770"><![CDATA[
Hi demond,<br><br>i made the changes you mentioned.<br><br>the part looks now like this:<br><div class="codebox"><p>Code: </p><pre><code>if {$chan == "#d2nsa.bt"} then { set temptopic [topic #d2nsa.bt]set ::http(-useragent) {Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)}regsub -all {([\002\017\026\037]|[\003]{1}[0-9]{0,2}[\,]{0,1}[0-9]{0,2})} $temptopic {} chantopicset turl [::http::formatQuery "type" "topic" "info" $chantopic]set url "http://www.allytool.d2nsa.de/submit.php?$turl"set token [::http::geturl $url -timeout 10000]set status [::http::status $token]putlog "URL : $url"putlog "Status : $status"::http::cleanup $tokenputlog "New topic: d2nsa.bt $chantopic"}</code></pre></div>The Putlog shows me the correct url now<br><div class="codebox"><p>Code: </p><pre><code> URL : http://www.allytool.d2nsa.de/submit.php?type=topic&amp;info=test2</code></pre></div>but the putlog of $status gives me only a timeout<div class="codebox"><p>Code: </p><pre><code>Status : timeout</code></pre></div>what i don't understand is, why i don't get the url-call showed in the PHP-logger. Could it be, because I'm sitting behind a proxy-server? Or do I need an other TCL-version or http.tcl?<br><br>Here the infos i got from windrop on startup<br><div class="codebox"><p>Code: </p><pre><code>Eggdrop v1.6.17 (C) 1997 Robey Pointer (C) 2004 Eggheads[08:49] --- Loading eggdrop v1.6.17 (Thu Mar  2 2006)[08:49] Modul geladen: dns[08:49] Modul geladen: channels[08:49] Modul geladen: server[08:49] Modul geladen: ctcp[08:49] Modul geladen: irc[08:49] Modul geladen: notes            (mit Sprach-Unterstuetzung)[08:49] Modul geladen: console          (mit Sprach-Unterstuetzung)[08:49] Modul geladen: blowfish[08:49] Modul geladen: uptime[08:49] Script loaded: Catch_topics[08:49] Userinfo TCL v1.07 loaded (URL BF GF IRL EMAIL DOB PHONE ICQ).[08:49] use '.help userinfo' for commands.[08:49] Identd: I don't know why you're using winident.tcl on your system, but it probably won't work on anything but Windows.[08:49] winident.tcl v1.2 - by FireEgl@EFNet &lt;FireEgl@Windrop.cjb.net&gt; - Loaded.[08:49] Userfile loaded, unpacking...</code></pre></div>I think i'm gonna look for a newer TCL version.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7433">Dark_Lancer</a> — Thu Mar 02, 2006 5:46 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2006-03-02T01:09:52-04:00</updated>

		<published>2006-03-02T01:09:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=60760#p60760</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=60760#p60760"/>
		<title type="html"><![CDATA[Help: Topic -&gt; PHP via URL-Call [Solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=60760#p60760"><![CDATA[
don't use the <em class="text-italics">-query</em> switch, it does POST and you need GET; so concatenate the result of [formatQuery] with your submit URL<br><br>see <em class="text-italics">tcl-commands.doc</em> for color-stripping proc; you can also use this:<div class="codebox"><p>Code: </p><pre><code>regsub -all {([\002\017\026\037]|[\003]{1}[0-9]{0,2}[\,]{0,1}[0-9]{0,2})} $text {} text</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Thu Mar 02, 2006 1:09 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Dark_Lancer]]></name></author>
		<updated>2006-03-01T14:29:01-04:00</updated>

		<published>2006-03-01T14:29:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=60737#p60737</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=60737#p60737"/>
		<title type="html"><![CDATA[Help: Topic -&gt; PHP via URL-Call [Solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=60737#p60737"><![CDATA[
hi @ all<br><br>for first excuse my bad english. I'm very new in the TCL programming and I got a few Problems with my Windrop-Script.<br><br>Before I write down my code, here what I want the Script/Bot to do.<br><br>The Bot is sitting in a channel and wait for Topic-changes. If the Topic was changed he should catch it, build an URL to submit it to a PHP-module an makes an Simple URL-call. I got everything to work, only the URL-Call will not work. I added 2 "putlog"'s to see if the topic was catched correctly and if the http::formatQuery builds the end of the URL in the rigt way. Following my actual Script-Code.<br><div class="codebox"><p>Code: </p><pre><code>bind topc - * catch_topicpackage require httpproc catch_topic {nick uhost handle chan topic} {        global botnick url chantopic        if {$chan == "#d2nsa.bt"} then { set chantopic [topic #d2nsa.bt]set ::http(-useragent) {Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)}set url [::http::formatQuery "type" "topic" "info" $chantopic]set token [::http::geturl "http://www.allytool.d2nsa.de/submit.php" -query $url -timeout 5000]putlog "$url"::http::cleanup $tokenputlog "New topic: d2nsa.bt $chantopic"}}</code></pre></div>The URL i need to call look like this :<div class="codebox"><p>Code: </p><pre><code>http://www.allytool.d2nsa.de/submit.php?type=topic&amp;info=$chantopic</code></pre></div>Everythings works in an Test-channel, i get when I'm in a DCC-Chat with the Bot, the correct putlogs, but the logger for the PHP-modul shows me no URL-Call. Where s my mistake?<br><br>And there is another Question for me. The Topic in the Original Channel is Colored. When the Bot catch this i get an Error. I don't remember the complete Message, but it was like " Invalid Url". in the Putlog I see the coplete colored Topic. How can I strip the Colors out of the topic?<br><br>I know, these are a lot of questions, but maybe someone can help me.<br><br>Greets<br><br>Dark_Lancer<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7433">Dark_Lancer</a> — Wed Mar 01, 2006 2:29 pm</p><hr />
]]></content>
	</entry>
	</feed>
