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

	<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>2002-05-02T22:50:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-05-02T22:50:00-04:00</updated>

		<published>2002-05-02T22:50:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=6655#p6655</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=6655#p6655"/>
		<title type="html"><![CDATA[Sockets.. i guess ...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=6655#p6655"><![CDATA[
thx ....<br>lol .... i'm stupid .... <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":smile:" title="Smile"><p>Statistics: Posted by Guest — Thu May 02, 2002 10:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2002-05-02T20:25:00-04:00</updated>

		<published>2002-05-02T20:25:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=6639#p6639</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=6639#p6639"/>
		<title type="html"><![CDATA[Sockets.. i guess ...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=6639#p6639"><![CDATA[
It is working lol<br><br>Your putserv line only sends the first line of the response. You can't send newlines within a private message.<br><br>putserv "PRIVMSG $nick :[read $sock 700]"<br><br>You have to read the whole response into a variable, then use 'split' to split it up (using 'n'), and then send one line at a time with PRIVMSG.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Thu May 02, 2002 8:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-05-02T19:43:00-04:00</updated>

		<published>2002-05-02T19:43:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=6635#p6635</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=6635#p6635"/>
		<title type="html"><![CDATA[Sockets.. i guess ...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=6635#p6635"><![CDATA[
it don't work ... still gives me that 200 http ok thing<br>..<img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":smile:" title="Smile"> <p>Statistics: Posted by Guest — Thu May 02, 2002 7:43 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-05-02T19:19:00-04:00</updated>

		<published>2002-05-02T19:19:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=6634#p6634</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=6634#p6634"/>
		<title type="html"><![CDATA[Sockets.. i guess ...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=6634#p6634"><![CDATA[
This is the first line of the server's header reply. You should use 'read' without the third parameter.<p>Statistics: Posted by Guest — Thu May 02, 2002 7:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-05-02T18:17:00-04:00</updated>

		<published>2002-05-02T18:17:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=6632#p6632</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=6632#p6632"/>
		<title type="html"><![CDATA[Sockets.. i guess ...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=6632#p6632"><![CDATA[
Ok thanks, but i get this msg now HTTP/1.1 200 OK<br>I know it means that it connected, but how do i get the source of the page?<p>Statistics: Posted by Guest — Thu May 02, 2002 6:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2002-05-02T02:26:00-04:00</updated>

		<published>2002-05-02T02:26:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=6607#p6607</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=6607#p6607"/>
		<title type="html"><![CDATA[Sockets.. i guess ...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=6607#p6607"><![CDATA[
Well you forgot the / in front of cgi-bin<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Thu May 02, 2002 2:26 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-05-01T20:52:00-04:00</updated>

		<published>2002-05-01T20:52:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=6603#p6603</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=6603#p6603"/>
		<title type="html"><![CDATA[Sockets.. i guess ...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=6603#p6603"><![CDATA[
WELL i'm trying sockets...<br>scripts is <div class="codebox"><p>Code: </p><pre><code>proc test {nick uhand handle chan input} {putserv "PRIVMSG $nick :oK it's coming"set sock [socket http://www.eggdrop.hut.ru 80] puts $sock "GET cgi-bin/test.cgi HTTP/1.0" puts $sock "Host: eggdrop.hut.ru" puts $sock "Connection: close" puts $sock "" flush $sockputserv "PRIVMSG $nick :[read $sock 700]"}</code></pre></div>and it send me this <br>[17:51] &lt;Winnis&gt; OK it's coming<br>[17:51] &lt;Winnis&gt; HTTP/1.0 400 Bad Request<br>but the page is where .. what do i do wrong?<br><br>&lt;font size=-1&gt;[ This Message was edited by: Drewbu on 2002-05-01 18:54 ]&lt;/font&gt;<p>Statistics: Posted by Guest — Wed May 01, 2002 8:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-05-01T01:20:00-04:00</updated>

		<published>2002-05-01T01:20:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=6570#p6570</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=6570#p6570"/>
		<title type="html"><![CDATA[Sockets.. i guess ...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=6570#p6570"><![CDATA[
Thanks<br>I'm gona try http package  first...<br>Is it already build in to tcl or i have to install it somehow?<br><img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":smile:" title="Smile"> <p>Statistics: Posted by Guest — Wed May 01, 2002 1:20 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2002-05-01T01:06:00-04:00</updated>

		<published>2002-05-01T01:06:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=6568#p6568</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=6568#p6568"/>
		<title type="html"><![CDATA[Sockets.. i guess ...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=6568#p6568"><![CDATA[
The http package can probably do what you need. I know it can do the GET method, but I don't know if it can do POST.<br><br><a href="http://www.tcl.tk/man/tcl8.4/TclCmd/http.htm" class="postlink">http://www.tcl.tk/man/tcl8.4/TclCmd/http.htm</a><br><br>Use http::formatQuery to generate a query string (the key1=value1&amp;key2=value2 part).<br><br>Then use http::geturl with the -query option to contact your cgi script.<br><br>You can also do it with sockets, it's just a bit more in depth.<br><br>set sock [socket blah.com 80]<br>puts $sock "GET /your.cgi?key1=value1&amp;key2=value2 HTTP/1.0"<br>puts $sock "Host: blah.com"<br>puts $sock "Connection: close"<br>puts $sock ""<br>flush $sock<br>then read the data back from the sock with gets or read.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Wed May 01, 2002 1:06 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-04-30T19:10:00-04:00</updated>

		<published>2002-04-30T19:10:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=6562#p6562</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=6562#p6562"/>
		<title type="html"><![CDATA[Sockets.. i guess ...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=6562#p6562"><![CDATA[
I wan to make a script to connect to a cgi file on my server and get the out put of the script ..... i guess i should use sokets.... and can i send data to script in post or get methods ? <br>If anyone can give me an example it be grate:)<br>thx<p>Statistics: Posted by Guest — Tue Apr 30, 2002 7:10 pm</p><hr />
]]></content>
	</entry>
	</feed>
