This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Listen Script

Old posts that have not been replied to for several years.
Locked
D
Dataforce

Listen Script

Post by Dataforce »

I'm using the eggdrop listen, to create a basic http server on eggdrop to send and recieve info from the bot.

so i've got the listen etc, it all works, but when a web page sends a "POST" to the eggdrop, the blank line makes eggdrop drop the conenction and not recieve the actual posted info.
HTTP PROTOCOL INFORMATION wrote: POST /path/script.cgi HTTP/1.0
From: frog@jmarshall.com
User-Agent: HTTPTool/1.0
Content-Type: application/x-www-form-urlencoded
Content-Length: 32

home=Cosby&favorite+flavor=flies
How can i stop eggdrop dropping the connection when it recieves that blank line ?

thx

-DF
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

I posted about this over on the development lists a while back.

There reply was that blank lines, are dropped, and not the connection.

Aditionaly, try using Tcl sockets.
D
Dataforce

Post by Dataforce »

how do socket listens work? and do they have a control proc like listen script ?
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

They have much more control.

See the following commands.

socket
fconfigure
puts
gets
read
eof
close
flush

On THIS TCL MANUAL
D
Dataforce

Post by Dataforce »

so i take it they don't have a control proc ?

(just about to read manual)
D
Dataforce

Post by Dataforce »

hmm, i can't find out how to open a socet and listen.

How would i open a listen socket, then send/recieve information ?
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

Have you bothered t read about the list of commands I gave?

Use the "socket" command with the -server option.

As for controling proc, see the "fileevent" command (not posted in my list, sorry)
Locked