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.

Problem with sending data via ::http::

Old posts that have not been replied to for several years.
Locked
v
velocd

Problem with sending data via ::http::

Post by velocd »

I created a simple script for my bot that fetches the users in the channel, sends the information via ::http:: to a PHP script on my server, and from there the info is stored in my MySQL database.

The problem I have is that the data isn't being sent completely.

If I'm in a channel with about 40 people or so, I can expect it all to be sent (and my MySQL table reflects on it).

If I'm in a channel with 1000 users, maybe only 75 of them are actually sent via the ::http:: Thus to say, bytes are being stopped short of sending.

I'm sure TCL socket commands are more powerful and aren't as limited as this. I was expecting it to send all the users, not just a small amount.

Here are the two lines of code I use:

Code: Select all

catch [set token {::http::geturl $script_path -query $http_string}] token
::http::cleanup {$token}
My possible thought is that some of the nicks contain special characters not suitable for passing in http.

I'm new to TCL, so I'm not sure of the code to use to strip the codes.

Any suggestions on the problem at hand?
v
velocd

Post by velocd »

Any hints or tips? :D
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

Well if you are using the GET query, the amount of data you can pass is severely limited: 256 bytes I believe. You should use POST instead, and put the user information in the post body.
v
velocd

Post by velocd »

The "-query" flag on the http::geturl means it's data being sent by type POST.

Even so, it doesn't seem to be sending all the data.

When I get the chance, I think what needs to be done is using regsub and some expression to exchange all the special characters into HTML codes.
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

Maybe you're right about escaping then. There should be a function like urlescape that comes with the http package.
User avatar
strikelight
Owner
Posts: 708
Joined: Mon Oct 07, 2002 10:39 am
Contact:

Post by strikelight »

The problem could also be on the web scripts side...
v
velocd

Post by velocd »

I can't figure it out.

I know it's not the PHP script, as that's set perfectly.

Even if I strip special characters, it doesn't work.

There is just something up with the http. Maybe there is an optional flag I can use. Or, maybe it simply can't send that much data.

Here is the info area for the http package:
http://tmml.sourceforge.net/doc/tcl/http.html

I could use an FTP method, but that's just bothersome. I much rather store it in a MySQL database.
User avatar
strikelight
Owner
Posts: 708
Joined: Mon Oct 07, 2002 10:39 am
Contact:

Post by strikelight »

might help if you show us the creation of the http_string variable..
v
velocd

Post by velocd »

I did a test with the script to output the usernames into a file on my local host.

Code: Select all

aelea Sakray DiGiTaLx Eise|Sleep Bonkers325^_^ black_WiNG Minako-chan Kimura-sensei Julian|ZzZzzZzz-_- RangerBAD deepwalker complich8 NinjaPantsu|ZzZz Aryu JHovX theMug Fooze Basn Turles-school Fujikura Ev|LJack akihiko Sakaki-X den628 X^` Kurenai-X ikaki Shia Ciber Takecchi navi Klepto_Neko Naruto-Kun OrochiTux andrew632 Kazu- AonE|Niisa AonE|BLAH Axeon Hitomi_chan ltCd- AonE|HentaiGod AonE|ReZurecTic AonE|Water Mystic_Homer Swimming_Bird {Romano[away]} AonE|Earth ruinevil DarknessTear Ashulta HG_Altron gene_starwind martialboxer Vanishing_sun BL00DLU57 Lego-serv shiroi_hoshi Lego Cashiya ssjwill4 MrMoJo5k antipokemon Evil_Ryu Alkenvaz MS msisden SleepingPinkBunny cho wzx132kjq Fimbulvetr Kinomoto-san AonE|Winter Everfalling Amano_Ginji blahblahblah BizNizza Borg-Sy quantum AonE|Kabuto Mday Jiraiya-- ace_D maddawg EnDyMIoN moko-san OkoNomiYaKi MitayMaxsh WateverServer Zetsueii tetsu0 error| TunaRoll CyberAngelOne Kiryn graham s0nicfreak Streicher Shikigami misha-chan Sairo hennyo |sorsisvic| asphyxia KingJoe_BOB Shadow_Knight Majin_Nero Burnkeal Archaos Seph231 DeadGuyKai Kira_Gunzo KyD sakamu Alucard77 Errdil Azlar I_[censored]_HATE_CLUELESSNESS AonE|Shadow vbacurau rootatlocalhost AonE|baSiCwinD Luphrecio RoOoBo CAFEzao ^Bella^ Altimus_X7 LaC AA-DNick-Bot10 Varu piesand Milk-Shake Premium komandach Pink_Tofu Penguin marciukaz Warsmith Kerikimo A-S-S-D-C-C BuddyLee jecch Caprina Drakkon mpb sandriz manticore Starlight Lucifer_Hawk BioGenx2b chrislux khmer|yin Evingar em1l1o JoeyKun zale Padway MastaYuPa GypsyPrincess Mr|Anderson GrizzlyAdams Collectonian|Gone_Home mog386 Duckie Digital-Pimp_Serv nukotton KiCkApOo randz- kazamakj KenShInouU {Iceman_One[ZZZzzzZZZ]} FreakTheMighty1 babo NagakuAoshi malbisco ChoaNime cheetahyawn JAW Motosuwa EviL-RaBBi Avan Arragon elisia x_Ryo-ohki_x eatme3 kuskusaway Agreton kahunaz Jaki Hideki-Kun Jaradcel tupou ABS-Bot MercuryX coldstorm ShoeBox Yuki-san Hydr4 abellium NinjaZ Shirobon otakuloser haroT3k Anita Gattica-X seiyaken DarkPanda Sars pra3tor cyberprocezor AonE|Julia CocoroFS mkv_wraithstyle MazingerX Rena_Chan CuteLittleBearPajamaOfDoom A1pha|Gojira Holy_Arima JonathanTeoh SSNAKE|OP Minegla Itadakimasu Pikachuck Shinosuke Evader|Bot Shadowfax| X-VirUzxZ-X Mornir-Dei Casseopeia SplXDCC SSJGesus falvis LordIczer wonderboylv Sythro00 KuMo SO|TeknoXI Cid Sousuke-ARX Kashou-X lqdFROST AonE|Case AonE|Thunder Demon_I Moerosyl BuddyBot Skysec huhyn Skysec_Serv Dorktron2000 Lord_raishinx kr0_|Serv AonE|Saitoh_San JaceBarret AonE|wAd|5tH|s invader_zim |||ion||| Neoqstar RobinK Miya-san-s-serv Miya-San Neiji darkkodiak Dark`Heart i2|Gipp Encore|Serv Sjj4GoGetta vivi3 CircleServer Cake DSXC ender285 akirian i2|Leprechaun ZenGod {[aXp]Tezorian} Chiixz jjswiffK darey` MaNiAx Jaide error_2k2 {Gyobu[FserV]} ZettoByte Gamer-X TheWGP {[G]Blitz} DrakeOz {Nobody[m]} LeB_Blood {Pyros[KoC]} darkassassin writkat JannuMies Shinjitsu Molovato bfehr|FServe Abe A-OK|ANGELXDCC LennV Syusuke twistedmtl keiho reijun_Joe i2|Dome Kytsen Breogan The_Ultimate_Samurai forbiddencookies bonklers AonE|Narutaru AonE|Crusade Hitonari BabyEatinDingo Spirit_of_Knight AonE|Negative honorless hellsing666 Jusuchin nbk animeDB skymist fishwine Hakuken panda ShiroiNekonoMegami monaco Spl Canti-sama radical_s AonE|Sephiroth MonE|Manga AonE|Aeris Gasco-san Yusuke_Fserv BlueFire Nexuses moviebuff Mr_URL belle-serv Raphael_of_Silverdale SilentDream nzoddd {{-Tsunami|neko-}} Psyclone gallegos2 poo Darune_Albane dzichi Madoka sesfan808 Impoveris GundamUnit02 Dokomo shingmyw Maxi|serv VampireXI patchesorical Rtbyu chetvigame spriggan_2 ern kusanagi-sama sssr Mista_T SnoWfReaK limestallc Tannosaur jellyville SURFboard xMalevolentVampx Nonokui Soujiroboi kitkatable Imago Bu_i tsunamikaze deltashadow DesiSolja Sonevar Tsu-na-mi Saerdna Armax lavaman idaho45|BOT DarthNeo oojnwo AonE|2qt4u Otik2 AonE|Elajt dj_enkie Isidro jaron es-v_u Fluorride Sycrotal DrOOM sushi_boy hai987 VaShQuEz am Wacknsmack CypherAC Tub1 golearner yukitsukai darynn TrooperX SakuragiB Fatima cmjdjm1 Nyg_AWAY Di-aphane Homeless antiartificial mamamiama olexxa Creative12 {[eXar]} PMC6 xanieeee billo Super17 worf snipeer Yadyam1 mizuno Darragh Tuaca twabzie FedEX regog dragon_6985 aberica ndestrukt RTK3 Yoshiro darkvador_999 Mio VashTStampede MiXuPs Othepain Ange1 LayzEePnoi Neotim y04r45h1 vands Alderis The_Maroc Abik-san Jurai GenXclouDs leb maig123 {[3lc]Dogma} |BooH| unicked ldlkdlklkd Whatupdoc Wolfa KaiSh elf_princess EkyekyzBangzoomBoingznourringm rdreamer Meulet DizzyDoo xilencer kanzakii|baka mikesqwe Stuckman Kambei Der_Grosse_Saiyamann |B|Recklessfire KentoMaiku pcfreak BaKaCell m4rj13 Azreal Yme2day Siegfried SeskaFuze NoSkillz flatrabbit paul09877 smizmar dosanko sasami01 bitum fireseer blueinferno evil77- Inui Dark-Strider JonusX xcom Squall`Le Otakudods Pigheadwen Shannelle sufood JAMMUU Showtime geverman Sprung64 chunsa Thneed fshpjiaz Rax_kun0 Jud2 plushie_wolf graynight JQuestx JPooahxx Tasuki216 moooomoooo BarriX Primo Kazuki-kun amonehp super509 StrikeRaider aznriceboi Count_CHocula12 morty YuGo paat babyface gR4s5h0Pp3R Angoleiro cisbrane linxz7 Solid_Snake {[clue]} Oturan doom seaburnt Revenge_ ombligo Animalid ReaperOmega WakiWAki zhenyang|daisuki t0w KurenaiGunjin cogangary swifto meuns WaQaaR _destiny Sin{x} AznDark Arbiter TurricaN` Broq joonsuxorz geeby Phaeton Mylar Debiru oreobear domo_kun chibiko defnotion huzz tavery AvatarStormBringer ls01c deathstke Killer_SPots I_Know_Kung-fu moomz kodamonochrome sabaw Knuma R0N1N Beenon xalatan Tanxadillo Kinubara escalayer mana213 tigersclaw |Lafiel| Psybuster KinB Kamui-Shiro no1here nanos AonE|Gamabunta {[Ultra_69]} anime8asi Symetries sergeantsear Skiper420 duncan31 DokoDoko Ballerman Olesesf keVerns Wanxi echo Seph29 Wise-Man Mystique Headache Bw2 azumanga {{Hiei}} TaBioN James009 dave34 AquAlex Cloudff7aus weap EtherealRage Lexino Athlon^ Kiba-san {[SvS]Taru} Vashie dreary tenchilove ZeroHunter11226 lilcupidsarrow Amithraldur brandnew ripola mrhat167 billy-sama westman96 kjocean GreenMachine Kit882 player5219 furious-g darklotus Kaoru_Kamiya Tselen fatherxmas socomRAKUEN CyBR favor- SandyD midgee schulz {[607]rev} LoneSwordsman Glucose sewerside `JusTinz flopyko kahula_found Snipester pchan69 Gatts Dyna wrecked sabercat8 hfgcg arc_2966 Blue_perfection IceMammo jkarnage SQuaLLXVII Steyr Zolkariu shinji21 `r2c|-numb- phenix LanEvolutionVII shweetie uA-Fizzz StonesouR mak3veli Virael demon407 eP|eklektic solace_d nomura` Keoki mrbakadude Vampire-Battousai Syncro Squishy ravenel ZapMike Kakashi-k Bunbury crazy_carl_ Gunbuster718 darius5 krezreal w00ty m4-mattimeo Gentleman starbuck ARUBIANKNIGHT Acend Omega13 TaXeN Winry mruk Katt kainsnow BrainBug Tenchi_Muyou Meiyi MinoruIDO n4ruto Arch now MuteNoMasenko Dougout priestie LUF Karn baka_nekos_sake leets Jeffrankko mill techi|harleq Vale PyreFly Hendora someguy86 Amelek Highest MagiusT jisho colistema xen0dudeee Azeal666 shuffleg oatmealz mark8794 {[AUS]Ciccio} \]\{nives Knight20 Dragonlord04 testing1234 vacadude HyperBeer mag dinksa Larzyman Whs2569 frogkiller SolShade drunken_master LiLmiChinNoM Xollence The-Fact Pisser10101 {[v2]foamboy} Hyde byrdclaw AbsoluteZ GEn-X lolainx Serlio_Malloy Althos ^ixio^ G0OS3 sanityimp Hulius invert seamus jc` DruidxEFD WhiteShadow555 a4e-Ludicrous2k Kris1 DoNuTchan EminA_FreaK animephreak drslum Ichigo_Momomiya PPiyo LordCanti|Away PuGZiRRa Amon_Kusazuri krairo spidey_kid2002 plopinou Shinichiro-san Khyron99 Brynn aLpHa-bLu Vicious_Machine Nebukadneza` Dakkon_P Chinaman3233 freak-666 icz TheDarkHaze |OiC|-TaiChi blackwell Hakaisha mythless {Mathster[Away_From_PC]} abgis Hitoshi scorpie kazhe kidddd mocha Camera Ei Bone6_0125 dgouk micke122 calpaladin Ot4ku Musasji wingzero01 mermood happytang Musicc1 iamdas d0d|zZz|ro Nik-ohki vinceszo Yusuke_Urameshi watashae Billy_Anderson kadomatsu Bones558 punkdeath geno Kakyou_Kuzuki Sakaterz Ishiomatic Bryce WhyBee windersmani {[id]} Pap0 Taranli_Maren ciapa dobitoc _Track_ lVloon t3ch^ AquaMarinezeee sandor emerald polaris Chocopocky Team28`oYo Lasarion xxxx Symetric Combuston icqiso2 Shurakai akami ArcCaw jx7 p0p0 oijoi KSSin|away oppasan Raven271 Shinkirou Gieve BoA XoDaKuZeN Snow2k4 chimplee hacksign kalassar kasugai L0ki yaggayo G073n HongFire disbol koshee stewpeas daihashi Namelessoul GTO290 Skylar Kate_Bekinsale_is_HOT Pheonix- {[DS]} Rasengan robinkrumm2109 FwXer Legolas_77 doinger Alexiel-Sama sk8erj123 benjy Velhart HiToKiRiKilluA dullz Tang^^ nosebottle lo_jack Kurosaki_Ichigo TMD-AzIMZ yayo Xi0n bluelilmunkie Fubar noafroboy chainuser BAI2 gfsdfgsd1 daedalus4 talcum seijuro_hiko Trucidation Oni_no_Oda Nut10 gfsdfgsd Himeno Daizzy haymania moneystradamus HostileFire dwagon Omoikane_se SpiritOfReason Xotyl Ryusen briardje1 Gibs0n briardje Axle u-m Victual Redtooth|Swim|School crazyf1 {[Naruto-Kun]} T_xmomm unltd WYWMssn|Desktop gl77bug {SlayerS[i]con} Aznable dj_hoto mengboy MaNDoO SharingNetworkWithSomeoneElse goldhyoga z403 vgatchaman me2 Tailsey Naii|aw Ni_away Xephyrus zooey_g Jboy001 hoochie amano|zzZz X__o |TEoS|Rhyzel rinrin-chan Ranpha Raiot Archon23| tnerb Inftech SiLeNtAsSAsSIn ghettodragon Aridyme Eddy |_Rune_| Zerox20 druid123 Deoce leciel Maox Saith intuition gaday kor-ryu Beefy falenstaz Chillysuns Hounjo_Mikaze The_uniKoRnio Dani Greystroke olio neji_kun zel Marcel-2 lild atmax Noah WiredWomble hakitokiranai chii-- SuperJusfighta2 Xca` nooby WK Natron-e scarlet_stigma FiRM| GroQp Indalecio rafar2123 Muffo {Cynd[Away]} Heimdall Sigma7 Vika37 MastaGill Ho|oOZ Undici Slayn_Avatar ChaoX empo Meteo ximage Call0ps bamiboon rollin_bl beck cr4zyd Labelman FairladyZ l33t-s4m4 weeda JimmyDaGreek vanilla_icecr3me SiFL Xiph neoxtreme RiceMAster Gwizzy eljapa chrnos zebra5578 ylr999 Shingo Erik2 Orzowei hippe Mobot osdhf Kpo_ang SeekOnce darkcrom qrcs-vdsh ewxq-pirs Spike21 caojiong Zero_GX Rokkaku R3dFenix evenflow stubb Apollo_5059 mugi Gorkh kensh`n UnknownNewbie SnakeEyes rahzel McKalland SharCloud vivi-chan carasway picklesnjuicer |OrB| ShadowMist johnducoin KentoHikaru mugenpowr fred100 mico Darsher CPAnthoni DEMONMASTER Tififou BluWacky cRay666 Torsim spooks l2ounD Kawaii_Kero-Chan RezKnot xSlIdEx Andvari GunGrave djdorobou Zoios {[ert]dsfghkljh} McFlae re Darkvision layer sibuxiang bumum rav G0tenks_ Sp4nic mkun Riri_chan Mobius| trix1 Auri kalvzinc Seijuro optimus_ Nvenya Katsuragi pain EternalRedDragon Hitrax maxfish elsdonator shindou_ bubi d23 Meck Icetron Wei_Li csscouse BluePhoenix Dacuz Ishtar biggreensupreme Cower canadaguy manah Distrough uzumakin Layrin fujiwara_kun Krust MOMikcik Vuron sykosteve2 animedude esby-- Spud1 Gu35t sage22 Donnie` Oewyn|Bot Cablemvc3 AzNPhoenIX Smuffi Natalie MDGeist nacfan83 The_Gandalf Sharon20 nubomb loremaster Kinip Shironeko gandy1 Bakkefar Passat Blue_Gpx tea808 Wormlord Waaslander FalconX Armitage ^_^Happosai Y0HaSaKuRa Kaldo DarkPaladin56 HehE Toshiro-kun {[Dismal]Mute} Nieto BaNZ Mooo BoA^PD TeTTsu antares dedryte Moobah f-kitsune santa peang Akor_ Avemaria Kakko_ii Cell-Sama Siltem|Zzzz shiro11 vivid ShAXbaTz dnb713__ nickctn PuffJeffin die_bt mirc8681 TheBullet MAXX {[XE]Yu-Gi-Oh^} Tatewaki Tighran SaiyanDbz Iolo34 persee13 WarServe Craio huip wilf Nick1 ForgetMyBelief PSNIPER exituz Camping_Sniper Rosewine connectz Geshka EgoSankari Mitsugi AnimeFann SleePeeHowLow ratilt Smegma3 Ll_shinta xxxxxxxv whuio Gash Smegma Spoiled_brat decyph Serafer jorgamund Thibi loner arllor DrLight Veidyn mrpenguin xyuanke Bhai machion76 karb Oewyn Mou Mechazawa yoplaitcustardstyle bladesmaster Delphina Killshok {]DV[-Xiph3r} GroZaV KagatoX Quint `Rage Karandras John2 RFX joker SylvyrRav cheeky Pervert_Jiraya bender101 w00tazn `alex` conducte Skid-Z tstarks1 bobs200-anime Lotis BWK900 evilsmiley AvenK f4ith pchuman Kaye^ Lancer_Evo Babaddeebo7 kamifusho lt_irish Ashman2 ozZzzz stummel zGlurb`zZ Tidalwav Juhachi V1nny Sanaelar {]Dv[-Bush} ProTiS NicholasD wizzy viruz acefree45 Conzales eversoru nerv_111 Kolipsus _DoH_ syragon_ GW135 insa1 Enzeru yatane yset iwabee Keito1113 versus1 muhQ Ericgoh revblade JoJo^ GundamVX yohoho MIRO StarGenji yukinon2 DOT SwYaR air air2 magphis Xilo Boss_One dodgypoo Hitobat poucin {Wihlner[} {[e8]-ego} Kong sp00ns nlil {[speed]} Splasher1 aznraver warlo Ankor Maxior AbaKaR Paladin111 shakildwz OptimismPrime EgGY_AZiaN QuasiModem virelai Warmm evil|fake phone^jerking trojans mumbaicurdi Yamanaka_Ino psychotux cheehc_home lodan2 neocraven J10ne charly2 dragonxeric aoshisama keitaro_kun Darkbot p2k treleana Sccpu3d nick_8462 gtapir Cledus DaiKirai Pika-_- ScReAm_bLuE smothmoove1 eyeless Str|fE zasysacz {[220]SnEeKz[DSF]} Kisa-san sake_mix yojimbo_2 darkchild dark_jeff Eriot nez schmirnof MeOnCrack Exxodus soyokaze idsrbk Fl0w vash` blobloblo eselfluesterer sgura3 Kama PietjePuk4 LoopX3 nemui KonamiKid ch1n0wha SXL avmoghe Gary Icet flatface Shadmanx Archange CowODOOM Azul_Leon|AFK Dwolfie DarkJoker Dragonclaw23 SkyGunner23 wahha Turinargh Spartibus arholdff nausicaa GoldFire83 Hiki schizophrenia ishigama lumiereeclair skanksalo guitix tko991 PietjePuk Kakaze xPk PH3NO Pitiblue SFLaValle jarehmechoe Moffy Eyefection _____ {JC[Ely]-TVCL} LittleGourry Xofia Twonky ebisu Kami` _Johan_ Klip BakaTanko ghrftyrt DarthCow Hajime_No_Ippo zappally At0msk {[wacko]} Pharmboy PreventerWind |3astard Mephastophilis thezlud` ltcmdrpooky {doombot99[away]} Chronox HeyTroub Shape Piccolo akirafr zandrame sLiCstic flns Sarten Armageddon Edwkusu NosferatuS|mode_invisible icekiller JYL ecl^ir GrEgO Shinta2k1 DocStrange Gatts-- Thesappe Gibber Passepartout mitroux muuuhhaaaa jhikari soot r00t-vaio qball blu` GameManK dustup4u2 Raist RaCo|afk tiswa DmncSnow The-One o0SiLo0o Thriff Quackarific Perfect_Storm23 Jo_Jo_X AiKawa^^ kokoro--atwork {path[w]} Kermy NFD {[Benji]} UK Horii qverny FecalLord5 ryune MT`Sleep Tragedy KoS_Makenshi Henk Kiatzu ANIME-4-YOU Phunk-san Devlin Aldante_Fax Broek zdb Lerajie Totoro_ M00oo jacolijn DeepBliu elnaser Narudaisuki Charlemagne jttt AoD|Loki ED0x16 STARLIGHT9 tanti_linew Ta`NTr eriolclow nawid007 Alita-chan choiffer ANDYandyandyandyandyandyandy Jinsaw waffl0r {]MeTaL[} {[R]ay_a_stras_dc_repond_pas} WisdoM mirai_no Infern0 blah1 Temporal drunkenmoogle Nian matmer GB13 a-scrooge macrophage Chiyo-chan Gaara-san Misc`oFF Infensus|afk ``game mess3d Omega_Sup nitzan211 spop1232 Kraker hayata WingZer0 {[BiTeZ0K]} garou12 xtacbb promi Yani2000 Blaine|Sleep elfs pinhead nanjirou B|ackMage_gone Sephirot F`MaXx FvD Sebastounatator nightfall123 GTS Majinz Badjol Lagalot anime20000 addi ggheheh fjohn furz pompu Viorexx Lider Mr_Minou qwertyzxcvb Heishiro Lumi|Zzz LioLio pacificterrific MidouBan xaero JiroGXP timbojons SirNumbSkull krissi bala Xweapon Shinchaos Deus-SP looking SchRotti Kage_66 crackpain Hakker Sorsis The_MadReaper punkfreak Spawnage animon_X tinokun baka`kos R2 RanmaSaotome ht_Garp matias_ EvilEden LanFeusT Oldmoon fusio Carybella Cort-X- fdfqdsf your_nick1 LilKeV84 Lorilei|Zzzz Gott dafatdude shogun- RaVeNFserVe bio` willibald2 Legonk Yunalesca ninin Seyan Syncross dropiso Gauner kilz3m Kam6 MrDarkMan aFk`sTaN- juzpushpl |Obaka| your_nick123 Boku Maz Mr_Bushido HaLLo|home Wakka jimhenson123 DiviDeaD- xc|ns517 Hiyono-chan SparK Psyduck_BOI gobol Oldone dual BAD Son|Of|Freddy bigJ dEv_ RangerKarl ghostcell clarck viruzr arcita sena CuteWhiteMage t\}\{E_x0rC|St GabanKing Aidis Fizban2 gabbababbahey Kurppa_ Nimura Briggs|FServe RAMPAGE` st11 quiver Nato {_Sid[} StuphgoesBOOM rozbby trance Gothax isokana yugi562 Bad_Kitty freetv834795 Iletia icingdeath alien9v2 Dalmyr-Invoker Kei_chan^_- Shidima THEKING GanjaBoi roboval Ju- StonerNeko duclau BC VeiL0 twhsd4 flylice Sangan gte989p Kyosato darknesz lunare wargundammon affinity Hanzo_ ABS-Gatzu-2 mfg-aldy mystyc Westlor st0ven Lord_Nikkon zetoune Sacrifar GriFteR Sektion31 stofkes2 whir_ stofkes Koganei Phix Kiro1968 gadashjh JanBy stephcoug Shinobi_ru Judeau-kun K_Q Makoblade Ravana Mu`Belier peachyTS Antaera a4e-goku- Black8525 m8 hitzman Zardan monkeychild MoMing manobot zeta deftom wackoo SlateX|Work w33d5mok3 maniek Souji-PM WuTAN cozmic YagyuJubei Toinne intungo Than` Karasu glew pastrami JohnDoeW PeRo^2 Insanity-O_o `Mercurius` dice The_Unbound_One cbr Stobart|Joyeux_Noel^^ JustMe rork cyclone jacoby movies smappies HiToKiRi` WireSpot Evader Alphaphoenix jenocide uh2004 alpha|C Patatoe OsuKiyaKi Jebo {[HF]buki][3dQ} mhon animeslave InFlames alpha-z Crysral mononoke REkku N1ko {x|a0^[K]} sinsio HeLLfire Alex_T Makubex2002 rouanelion DarkEsperX Scyris junta satsujin PChan Tarkanus BiZz Lasseril Wz {Necrite[-_-zzZZZ]} Colje Falconey^ animefreakhead evolutionx StriderX demandred neurra Asami Ah_Gui hjof anshincable Eli-chan urgu FireBlazz Minion Kaiou-ryu spank Zephyr54 Yurik axii Hughey wawawa cheehc LaziaLe Alastor Sir_Noseb L`artiste lordtec NOiZ m0u5e Datastrife S-Cube WierD kadtz ouass {Garaa[Q8]} kungfoo Azer Galaction ajira Sum1 Bug40000 ias jingwa Unwanted7 mappy Darkover Ikz3r|Tradu crater NeoMaHo silverfalcon6565 lelaki_anime Mattousai moksi kiith qwertyuiop Koross Kurisu chaos28 inFe2no birdman82 Zoolandra Vash-san Calmriver shigeki guess|serv johnny5 x-boy hic Schulman Zhengi slpy-chan nitegal Cpt-Manni kefff xGenocide JamacianMan83 owl007 PsychoFiSH atetsu Babaddeebo Piro-chan Lordship `JiE Wwaldo Asahi AsSchUcHu DogKirb Asuka^ Nins rukaede Mike_jsa Mira peon423466 baloo Neobit Chidori-chan kernunnos g3mi sqwrt Lopo Gambit^ Zelphonx SebAtwrk AdrianoD Roddd headshotjunky julio77777 Real`Sky babycute NiteMonq Ady168 Raiha^^ {Big[E]} FirstLuX xyu Z0NE|Away Bloodyboi liquid-vexx Ar-Kain inotdumb ubb kcarrey AnotherKucing nutshell42 Swittyz arasal KaitouKID babayaga OrokaMero Kokoro- wakabayashy Rainer33 Arcueido Zanmato Shinta-kun Animetrader0306 KeRm|t Gr00vE zenon pe`` psychotichaos Xailia niar EvilBeanbag Hasukawa {dude[a]} Drednough papyrycan Recca168 cmax v13|CLockw0rk Jaguar Virar RokkZStaaR rahxephon82 cherno fs740 Syra grimmer darkclock1 celicaGT4 riftwing SSJ5_Nabeshin Bakou Lagoliers hsvb DeJayMonk Vivean Chibii-kun sHiKaMaRu_oOi bloodforge devilish_boy Badat Kendo c0ldfate Sendable Sammies Pakcik_Saddam YeYo edgymark1 SSNAKE wurzler Lezard Nightkill Kami__ ^mimi^ Lazzaro mingo18 Redfoxmagi tx5-Yoda {[ins4ne]} menard Wazatiste {[Q8]SpeeDeviL} j00e Pants freelookmode Liddokun Falon Ryoma_chan Chika-rin Mephistopha shinsen Kyosuke jim2 tiedye emamuro tolasar10 Keitarou Pipco Klonoa` AphexTwin kosmos55 cheezy Dita` faker hesho bla naj KaaL Platinum|Star omler3 {[Ero]Jiraiya} FRX-99 omler kakitahan Seta-Soujiro AcbYozzz dudidud2 jam3972fs Pepper ShadowSpawn2 pte Neclos Grissly a_k ussimon spriggan starbane99 DTwinWarrior toluwalop peregrine cupoftea geORGY Gogeta619 s0matic foxfire acidheart El_Regrs NYIcHiBaN Antoneo nzodd triex Saros Yuuichi-San Majddar RubyW Chillisauce TurdFerguson BadAndy vulu__ omarluc earendur Tenshi2505 RingLord mightymouse mrJotun Moosewittheak gametwice BooSender dotainsane the_sneak tcssj2gohan shepte Forbidden Dreyd AstroTeK {[uM]-P2P} Hayami slickz EmriFusion Darkmgl DraconianAC Kevdadude Modi Ktdata Guidance {Momonari[Away]} XscapeX pnut599 OK_Pocky strikeX105 AznTyrant2564 Abba-Zabba {[chibi]} no10 TheDarkOne EchoBlade pekkolo Crimmy boom Atreyu ukkeiya bamboo2 dragonrl Kylon Rain_1 Superior_1 LostHere f0xShot renee quantum_cyborg Armen|||A Keitero-sama billbo Dirtymix Virago242 LinD Negative Zeio CountSmokeula ryodan your_nick Psybrid Weapon13 dazkrazy LiL_tokyo Stormy001_M1A2 mj12albert Vaco VGAi {[mae]} kholgrim alhcitkane EQszd chuuko_pantsu Proth Vareen ManCow` Serafita blksupama |progenic| shadhoe s-chan Traxx KennyWig Spooky_Donkey Matsuura-kun N4rp Hoshino Omicron_15 tak Marthaen Spider|afk Spolioii Danismyname WingDing jaroldmac Shebes id|fool Lessa DmX slee cheex jeshen12 uppercase MMZCees thelastguardian kuso JustChoIt AzN-iNVaSi0n Tsidneku_NH Nahga penguin|tired fiz-san|One_Winged_Angel ImPrEsSiO Pugz Archead MasterWong|Work Mercyon strain17 paw Bishop_M Blax0r Akira080 Zoidy theduck arcane tungsten_22 Moesbie JETRPG Deke beastawars H1ghLander Encore2097 nekoball B-1-A bababasara SSJ|Char EscaBathe Inga Abraxas Nicedemus Cehtna Himura-Kenshin Baki_Hanma Wandering_Nomad Ainslie julz84 grz NSzeto Astraban gabyoman GustavX kawaii_shipon adonis m_o_d DIxx-CK DrWho-away glyn ragdim DrifterX808 WeaponBoy anime_luv cural AerthEan Slink3r Sagara-Kun ph34rtehcut31s chew2107 BadDoug ckinoki |HK|Prototype| mariol {[e2]-clipse} Hargrieves crazybusdriver IcyFrost {[Saiyan]BrollY2} rainman Ritalin NetpirateS2 dfghfbv Nihongoman TeK NissanNut Asterisk4 Neji sootssa Suzuki Lain ok Quixote Cpuroast alessandro bunmei Wildstar \}ElectrowolF\{ Kazuya-kun Oojirou _teron jitan06 kamekazz Animus Nandayo-X Tom01 pure7 gene02 cencaru wMaN nwa Essen PaRaGaS Marticus {collins[ic]} Hajime Tomynocker {{Oo}} syndic100 jdogg plato_ii Dalak TriLight diobot Mystic-san Papar_Man WooTo s4ndm4n DemonDrak Azn_Prometheus Yawlsak Mondale Karasiew Quijibon Xenogear Nexai romper deltop G_man Bokal laugh Heigar Crokk Neko- Seta-Sensei _-Sky-_ Gandy Gattz n0rre Latokayelao paultjuh Naos infi otaking241 pacman lini DerkinHammerHand Fluid Sethi {[Sasuke]} Getbacker fortytwo tetsu-san Gemini_No_Saga HonestJon junkTzu McMental Vervamon DingleBerry mercury pupuu Hoof-Hearted Angeliene acrylic27 lewin kickme Uncle_Chan eX-j0nny Rakh darkridr Olihin TheNotoriousDoctorPraetorious BannedfromTV2 FuN Kaeru-chan aishteru GaTtS__ {J]-[UN|away} touya- PhoenixDown whzzz28 FireShard Miklus NightWolf Psuburnsy Wachi MinBinChan Zite` icarus523 gasaraki Amundo kaply Stealthy Nagoya siranime Airhed71313 Solan Card-Mistress DreamSurfer co_bingung corran spike osama-sama YamatoKira uLTraCarL|out delirium ASMO- DataWolf GundaMania AlleyCat Chuubaka flobidob glyloch Ezbruff L337Kid pactive MSH` mashrock anonghost Pokute7 YamaNiwa Paso kumasan ^-Di-Ta-^ Yuk|KaZe AlFahl xcalibr YoshoMasaki Lykan R3|00^_^ PhoenixH1 rugger d188 _Yuuichi_ Miggle L0rdRayD1 Ni Chenosh otokoneko Ay0r zalera swdtech JohnWu Malignum hmtX grieva_0 Ashu Lenaen terry_b Kiku-chan lcreich JanusZeal Stewie mWMA Fulgore2 Broodman maddyfan Megazon steltek eqqroll Kung_Foo Scudster^ sgamer FiX-blitz Je||o kickitar MonkeyKing HatakeKakashi solingro ToMmY_cHi Servoid Shaadow_Kniight spacerat Meoriel nineball Zoom Mugen209 rurihoshi RyokoTenchi TorN^ Phas3d kiwiwini MentholMoose ichigo Azurith pkxJgVOn BlueWind pixelpixie WYWMssn da_MiGHTy_pLUm Vaelen HockeyMan AznLemming Teh_Botol Ayrton santa|mayor Chitose- Lob Guardbreaker AFCommando ninjastar Heresyte EsoDra pacificspecific Palladia Helba mkb137 Clive Ronchen Gendo007 eCoz heck Gold Rico4096 Samestus Ghengis Animatrix alloy` lma0 rabidpacketmonkey animerocks SorryMan NeoBlargg biolaser Scoroby Marine dogbert Etek {\dev\null} Satgran razen mashike-hotashi meow_meow Xearo billydog2 Mythical Reishin Swiss NightRiderElite TheBrain dravicz naughtkelvin blasther Mudwert Brute_Force nekoneko09 freon1200 Tharku Miyama_Yuuna rev Yukito evilrad Sleepless abcb Va|kyrie Hittokiri DexX nakk Elseno Nnikmal Frot|ZzZ HKHomie FuIru FD3S madness pararas sp00kyT ibliss JaYChOw {[reptile]} Evanlore Namu Goliath Kc20 DJ_Naruto NCC2000 elgen Schesuz-A Cthulhu wandering_kaijins AngelSlayr abcde {[D6]Zero} fuzzyfaery Insanity Nick83azn Eye_Of_Doom {SG_01\Win2kAS} Hal2k qweq Echizen CCl4 Zero-X-Cool kjw jounichi-sai GTAkito Chibisuke Sasse Inn3rz0ned_out {Killer[]-} xenocryst kaoribear zepher Dje Panzermensch ventslice hWnd Sandstral fly_flip geared silverg79 hllzero Wetrix Tiberius pyr3_sayz quxbar wim seggiex wshinji {[paul]} teklinn maxmajere SyncMasters coolness Fanelia Skunk`Zox mr_calligow spd NaMo krystals Skankin-Baka imokie HimonoYoukai Spaceout Sreaper Lisker2 delly D|SASTER {MajinKain[Serv]} KoJoe totos DataBurn Zacrias temujin Sir-Knight Bombspecialist Serajadeyn seravi3 ImTheReal Jii Haruka-San Vinny Kasuga_Ayumu Mith_ Zach Shin-Link tieg Sonuva Choupon villabra Lucifergsx Mikojin coca_cola2 AnimeKraze mr_Moose p0wer hydra DarkSoul NightLurker Sen-81 Turbodave Hirok Ayeya aoh` Kagnon Rubikon Ohpus {Shiro[A]} Indy` Zakke-ku wilx Helm seijuro78 bimbo moria haunter103 AmDHiMuRa Ethery_ _Thanatos Don_corleone RoVeRT balquydz sgrby877 EternalXBlaze905 dominazn lost Aex SWServ Mouki vtl onikon ginjopa weptir Dutchgoku Atomics billydog Astral mymotherisafish BlueThunderKuno Avi^ kk2583 brownus teadi KrazyDawg bird Phaserslash chihsiang flipak47 wildone81 Dallin _4T2 Einhander whore69 roberto hotshot826 PCxxy Dragoonryu Thundarus MrDisco firebomb Dacomp89 Vertigo Quixzlizx ieee Burstar yoyoman decrab GSValore tsukushi88 s3phiroth-x1 Un4given11 Kuyei evilpigking eof_sama pingh liquid_skies Baka_Battousai rukmedes Fingal kewlx auryn The_Prophet LS|Iron Thorin245 Shieru X-Hunta Diamondcite jonat3 Mr-Freez SunKhun o_x gray_wolf initialhz SAGExSDX Quad4ce BleebleFu apple314 xRyousukEx Goda vihanne Moratar pantless_hobo whelhel kiryuu ge Aerandir stefania ruka Folky Dokuro_ XenSphere Raz`Campagne snowsoccer Quickdart pyrokid4life Glamdring id_away ExtraDry watarimono saru Link152 lol Fuji_Syusuke acidict chronicrebellion tw1light lwlw iso Plucky_ klane Trooper1 ShadowKSI DmV MasterMagicianPug Talon580 b33rBSD {[DdB]Zypher} UNiT_ZeRo sugoykenshin KJu ishtori R^2 boobytran stuebi aegis ksks Dmitry wildCat` mosaic wasian egavas Cryptic GetchaPwr S0meD00d belgarath0815 p00kie cookiemonsta Humpe fobgrvt Saysor MasterPlan Ruri-chan MontyP carbondeath lcchan OmegaDes Sage852 lz_prelud Veritas LoT`Syne_Keeper Judba Fazer Jechs Imps2 AS Fileasd Ethernaut Karou Kevy {wslihgt[aw]} Drekmor seraphangel \}-\{endrik {[aa]fiz} Tamahome_Tokiya lum|ere mitsuru Avalon Kishi-kun tys61 kagemajin ranma_saotome Zabuza-sensei bahamut_tdk dklz ThYoshn8R cantaka VertWork othp Fuul guikui2 Raguna newbs^as {]QUAZI[} p00f tatar Ega Iced DarkLancer The_Irish DragonofFire Freddo WarpZealot Kthulhu boebeke TurnerII TechnoPhiliac Akito-Prince-of-Darkness Smurfen^ qrizly Rygura Rad teeshi ShinKoHyou MTekLabs WeeThaBiX Halcyon-Black typedef bfehr dbaggins Hoshizora Nishino-Tsukasa viskil NorthW|nd HumDinger Inversion ccode Shinyuki-kun Brigand haradariku Skylancer superdown dddd |Seraphim| ssd chiapetv Lighttaker asyurei2 ambidextrous Hitomi dran|cso DarienJax Winter^off EvilKarazu GreenOrphan redmob takutonekoplushie impactblue Seraph PlainBoy Greer2Go Sanjiyan Alpha-Red Zagge- jugon mikoagent Shadowskill Bobma BadGuy BurnHavoc thesog Tuna gogo-kun shyster VanG hohoh0 L-C garrod rogersmith kathy---c Beom Berkut ViVi_bOi wInLoc noeltry_ FVal Nippe_R Siknmagh kass sleepsput Deeo shaman- thanan DNdogm cracka flost Kawe-_-Sad dbstallman Bouba hiro_ PartyPepe raye Mdeth SpookyElectric starstar81 SpaceLude Basil Q-Man skizm PhoenixWLC uks_huh dodollllll OutlawStar MovingTarget linalys osaka Swdfsh jooe Larzje NivFreak D4rkDr4c0 rammer mulkvisti _Shinobi_ Wheeehooo drow Amy_chan westsidemack Jinto JubeiNinp Wexican PiKa Chaos_Lord idaho45 tjarls Buffered sf AZNBookmage Pyro-X ViD thewolt teppoka Pithlit p1971 satisam neko_ AG_LS b4k4 NewType alteruse Bxfr {[0wN]^-_nemesis_-^} t0m SiRx4pLaYz KooG|Away fushi Psykotic cyberfield`chailert flavour YuPing ^varda^ gbrtby ChObo hashin LondonTeen ArabianPrincess CraZyFooL Sherri-chan dingle flavour1 relishsoup jcm Squall-Sama illuminatus Tier_P angproduk SnEptUneLocal WhOoPe3 psYc1oNe Den itzghettoz Dai-Kun somename Happy_Guy Naruto_-_Kun Dashel^21 johndude Armuro scarymint GerTheDwarf Shell Neosakai Kibalchish Coran h00t marymary bergerpaz wai masuo kaho-chan tolwyn B-Rad {[MaD]HaTTer} Sadsuna ZeroAxlX8
As you can tell, it's pretty big (approx 26.8k according to the file). Still, TCL should be able to support 26.8k of data transfer in POST mode.

Here is about what I get back, in my MySQL table:

Code: Select all

@caelea, @Sakray, @DiGiTaLx, @EiseSleep, @Bonkers325^_^, @black_WiNG, @Minako-chan, @Kimura-sensei, @JulianZzZzzZzz-_-, @RangerBAD, @deepwalker, @complich8, @NinjaPantsuZzZz, @Aryu, @JHovX, @theMug, @Fooze, @Basn, @Turles-school, @Fujikura, @EvLJack, @akihiko, @Sakaki-X, @den62, +andrew632, +Kazu-, +AonENiisa, +AonEBLAH, +Axeon, +Hitomi_chan, +ltCd-, +AonEHentaiGod, +AonEReZurecTic, +AonEWater, +Mystic_Homer, +Swimming_Bird, +Romano[away], +AonEEarth, +ruinevil, +DarknessTear, +Ashulta, +HG_Altron, +gene_starwind, +martialboxer, +BL00DLU57, +Lego-ser, Isidro, Ky0suke, nadsie, du-ma-nam, Taama, tomme, twinkiboy, Kaitou_Suzaku, tigers69, ahdaN, Sadinga, alucard_leashed, zErOcOoOL, Snipester, Draxt, RicanBOY9669, mikesqwe, whoaboy, Ex-soup, olexxa, [krynn], Solid_Snake, cloud716, D1-afk, Ippo-Luffy, [ert]dsfghkljh, Relinquish, iluv
And here is the entire script:

Code: Select all

set irc_chan "#animeone"

set vscript "http://www.mysite.com/ircscript.php"
set key "45565"


##############################
####  Don't modify below  ####
##############################

bind pub - !test refresh_IRC

package require http 2.0

proc special_chars {string} {
	regsub -all {[^a-zA-Z0-9\^\[\]\_\- ]} $string {} string

	return $string
}

proc refresh_IRC {nick uhost hand chan newnick} {
	global irc_chan vscript vb_key

	if {$chan != $irc_chan} {
		return 0
	}

	set ops ""
	set voiced ""
	set normal ""
	set num_users 0

	foreach nick [chanlist $chan] {
		if {[onchan $nick $chan]} {
			incr num_users

			if {[isop $nick $chan]} {
				lappend ops $nick
			} elseif {[isvoice $nick $chan]} {
				lappend voiced $nick
			} else {
				lappend normal $nick
			}
		}
	}

	set http_string "do=refresh&chan=$chan&key=$key"
	set http_string "$http_string&online=$num_users"
	
	if {$ops != ""} {
		set http_string "$http_string&ops=[special_chars $ops]"
	}

	if {$voiced != ""} {
		set http_string "$http_string&voiced=[special_chars $voiced]"
	}

	if {$normal != ""} {
		set http_string "$http_string&normal=[special_chars $normal]"
	}

	catch [set token {::http::geturl $vscript -query $http_string}] token

	::http::cleanup {$token}
	
	return 1
}
User avatar
strikelight
Owner
Posts: 708
Joined: Mon Oct 07, 2002 10:39 am
Contact:

Post by strikelight »

You might need to regsub all spaces with %20 or + ...
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

::http::formatQuery key value ...

So maybe something like:

set http_string [::http::formatQuery do refresh chan $chan key $key online $num_users ops $ops voiced $voiced normal $normal]

and avoid of the special_chars bit. It should take care of all the required substitution.

If this *still* fails, you should use a tool like strace to see what eggdrop actually writes to the web server socket. It should be pretty obvious since it'll be like write(23, "POST /script", 10) etc.

Also, have you put logging into the php script to see exactly what it gets as the value of those variables?
v
velocd

Post by velocd »

Bah.

I'm an idiot. I got it working, I finally realized my MySQL row for the nicks was set on varchar(255), which obviously wouldn't contain the amount of info it needed.

X_x

I wont make that mistake again. :-?
Locked