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.

Sending data to a web page

Old posts that have not been replied to for several years.
m
mike938

Post by mike938 »

1 other thing not related to the topic is in my windrop it uses this a lot

kick reason: (Colours are not in RFC1459 :razz:)

how do i shut that off?
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

Thanks to the nice people @ the TCL project, I am able to provide the script required to do this, with minor changes to my original.

The following should now work

Code: Select all

proc example {name type ftp files} {
  if {![llength [info commands "::http::geturl"]]} {
    if {[catch {source scripts/http.tcl} t]} {
      putlog "Can't load the required http module"
      return
    }
  }
  set q [::http::formatquery name $name type $type ftp $ftp files $files]
  set t [::http::geturl "URL HERE" -query $q]
  ::http::cleanup $t
}
Notice the small change made.

Download the following file. Make sure it is called http.tcl and placed in the scripts dir

http://www.ppslim.ukshells.co.uk/netbots/http.tcl

The above file is provided under GNU Licence. BLAH BLAH (better safe than sorry).
m
mike938

Post by mike938 »

this would work if the trigger was this
"[ SHN ][ UPDATE : DVDRip : 10.15.01.The.Loss.Of.Sexual.Innocence.SVCD.WS.DVDRip-V4F/Cd1 ][ Expecting: 57 files (v4f-tlosi.cd1.*) ]
and this is the code
--------------------
bind pub - * ftp
proc ftp {z ftp a b c d e type f name g h i files} {
set mode add
if {![llength [info commands "::http::geturl"]]} {
if {[catch {source scripts/http.tcl} t]} {
putlog "Can't load the required http module"
return
}
}
set q [::http::formatquery mode $mode name $name type $type ftp $ftp files $files]
set t [::http::geturl "http://www.mike938.dns2go.com/obl/obl.cfm" -query $q]
::http::cleanup $t
}
-----------------------
would that make it goto http://www.mike938.dns2go.com/obl/obl.c ... les=$files
but filling in the $variables corectly?

<font size=-1>[ This Message was edited by: mike938 on 2001-10-15 18:50 ]</font>
m
mike938

Post by mike938 »

so in that example the url would be
http://24.188.126.61:8000/obl/obl.cfm?m ... N&files=57
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

Does it take a drill, tweezers and the threat of death to drive it home?

Read tcl-commands.doc for the arguments requirment for binds.
m
mike938

Post by mike938 »

i fixed it hehe
Locked