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

	<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>2007-06-11T16:01:55-04:00</updated>

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

		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2007-06-11T16:01:55-04:00</updated>

		<published>2007-06-11T16:01:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73435#p73435</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73435#p73435"/>
		<title type="html"><![CDATA[Egghttp, sockets in sockets..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73435#p73435"><![CDATA[
The http package is well documented in the tcl man pages..  There's also a thousand example scripts here and in the archives (all of my webscripts use the http package, a few use the socket code, none use egghttp.tcl)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Mon Jun 11, 2007 4:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-06-11T12:38:28-04:00</updated>

		<published>2007-06-11T12:38:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73429#p73429</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73429#p73429"/>
		<title type="html"><![CDATA[Egghttp, sockets in sockets..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73429#p73429"><![CDATA[
<a href="http://forum.egghelp.org/search.php" class="postlink">Search</a> the forum for examples.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Mon Jun 11, 2007 12:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[leandro]]></name></author>
		<updated>2007-06-11T10:36:08-04:00</updated>

		<published>2007-06-11T10:36:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73418#p73418</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73418#p73418"/>
		<title type="html"><![CDATA[Egghttp, sockets in sockets..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73418#p73418"><![CDATA[
Im afraid I dont know about any HTTP module... Do you have a tutorial somewhere?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9041">leandro</a> — Mon Jun 11, 2007 10:36 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2007-06-10T20:50:38-04:00</updated>

		<published>2007-06-10T20:50:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73403#p73403</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73403#p73403"/>
		<title type="html"><![CDATA[Egghttp, sockets in sockets..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73403#p73403"><![CDATA[
Switch to the http module that comes with tcl and I might be able to help.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Sun Jun 10, 2007 8:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[leandro]]></name></author>
		<updated>2007-06-10T07:01:17-04:00</updated>

		<published>2007-06-10T07:01:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73389#p73389</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73389#p73389"/>
		<title type="html"><![CDATA[Egghttp, sockets in sockets..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73389#p73389"><![CDATA[
Anyone? Pleaseee?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9041">leandro</a> — Sun Jun 10, 2007 7:01 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[leandro]]></name></author>
		<updated>2007-06-08T11:02:46-04:00</updated>

		<published>2007-06-08T11:02:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73352#p73352</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73352#p73352"/>
		<title type="html"><![CDATA[Egghttp, sockets in sockets..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73352#p73352"><![CDATA[
I am creating an online database, So I need to connect to a webpage, read the first line, open another connection, fill in some data, and then go to the second, and so on.<br><br><br>Now, I have this:<br><div class="codebox"><p>Code: </p><pre><code>et url "http://localhost/akicks/todo.php"set trigger "!test"if {![info exists egghttp(version)]} {  putlog "egghttp.tcl was NOT successfully loaded."  putlog "http-akicks.tcl has not been loaded as a result."} else {  proc your_callbackproc {sock} {    global url    set headers [egghttp:headers $sock]    set body [egghttp:data $sock]    foreach line [split $body \n] {    regsub -all -nocase {&lt;br&gt;} $line "" line    regsub -all -nocase {&lt;b&gt;} $line "" line    regsub -all -nocase {&lt;/b&gt;} $line "" line    set id [lindex $line 0]    set secondline [string trimleft $line $id]    set com [lindex $secondline 0]    set newurl "http://localhost/akicks/mark.php?id=$id&amp;com=$com&amp;pass=12ledro"    set sockset [egghttp:geturl $newurl akick_proc]    return 1}proc akick_proc {sock} {    set headersset [egghttp:headers $sockset]    set bodyset [egghttp:data $sockset]    foreach line [split $body \n]    if {$bodyset == "Ok"} {      putlog "success"    }}}  bind dcc o|o $trigger our:dcctrigger  bind pub o|o $trigger our:pubtrigger  proc our:dcctrigger {hand idx text} {    global url     set sock [egghttp:geturl $url your_callbackproc]    return 1  }    proc our:pubtrigger {nick host hand chan arg} {    global url     set sock [egghttp:geturl $url your_callbackproc]    return 1  }   putlog "http-akicks.tcl has been successfully loaded."}</code></pre></div><br><br><br>But this only seems to work for the first line. Any suggestions?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9041">leandro</a> — Fri Jun 08, 2007 11:02 am</p><hr />
]]></content>
	</entry>
	</feed>
