@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2



Comments:

<0> i have this proc that gets data from a website
<0> but it takes 30-40 seconds to retrieve the info
<0> while it takes like under a second on a browser
<0> here's the proc http://pastebin.com/533029
<0> it takes 30-40 seconds for set data [http::data $rs_sock0] to finish
<0> i don't understand why. is there a faster way to do this?
<1> try removing the -timeout
<0> then it won't even retrieve the info
<0> well
<0> it will
<0> but still 30-40 seconds
<1> put the package require outside of the proc
<0> okay
<0> i'll try that
<0> this is for an eggdrop bot but i imagine the http package is the same
<1> yup



<1> ::http::config -useragent "MSIE 6.0"
<1> try taht as well instead of mozilla
<0> lol
<1> ?
<0> i dunno it works fine with other sites
<0> but the new runescape.com won't send data fast
<0> it takes a while to give the script back the data
<1> basically in an imdb script i use:
<1> set badIMDB(page) [::http::config -useragent "MSIE 6.0"]
<1> set badIMDB(page) [::http::geturl $badIMDB(url)]
<1> set htmldata [::http::data $badIMDB(page)]
<1> ::http::Finish $badIMDB(page)
<1> u only need to declare the package require at the start of the script once
<0> okay
<0> but
<0> it still makes it slow
<0> err it's still slow*
<1> is the egg on your pc ?
<0> nope
<0> on a server
<1> are u testing the site access time via a browser from that box too?
<0> mm i asked the admin
<0> took under a second
<0> and i wrote another script
<0> that goes to another website
<0> well my website
<0> and retrieve stuff off that
<0> and it works 1-2 seconds
<0> not 30-40 seconds
<1> hm
<0> is there something that's in http package that's making it slow?
<0> or isn't optimized for this type of server?
<0> :|
<0> is it cuz the server has http 2.4.5 ?
<0> and not 2.5?
<1> dont know
<1> have you got a imdb script or similar u could load in the egg?
<1> and time test that ?
<0> i'm pretty sure it's runescape.com that's not sending the data fast enough
<0> i dont know why
<0> what i'm thinking is that my http package is outdated?
<0> for the site?
<0> :|
<2> for -> http://www.tcl.tk/man/tcl8.4/TclCmd/for.htm
<0> i don't know
<0> whoops
<1> i use 2.3 with no probs
<0> with my code?
<0> connecting to runescape.com?
<1> no, with m own stuff
<0> well the http package
<0> works fine
<0> with other sites
<0> it just doesn't work so well on runescape.com
<0> that's what i need help on lol
<1> the only thing i can think of is that the tcl http package sends a header that runescape is filtering out :?
<1> but dont quot me on that
<3> ?
<0> hello?



<3> right
<4> uc
<5> hm
<0> hai?
<5> what's up with this?
<3> stop flooding yoe :]
<4> uc
<0> hai
<4> silly rabbit
<0> hai?
<0> finally
<0> :X
<4> :p
<0> so anyone know why my http package is being slow on runescape.com
<3> the runescape server is slow
<0> no it works fine
<0> with firefox
<0> or some other browser
<0> it takes under a second
<0> but it's really slow (like 40-50 second) to get data with tcl
<3> is there lots of data on the page?
<0> nope
<0> 18kb
<3> with compression or without?
<0> um i'm not sure i'll check
<3> whats the url?
<0> http://hiscore-web.runescape.com/lang/en/aff/runescape/compare.ws?user1=zezima
<0> takes over 30 seconds on tcl
<0> http://pastebin.com/533029
<0> here's my code
<0> if you needed it
<3> takes forever for me too
<0> really?
<0> on what?
<0> tcl?
<3> firefox
<3> ill time it one second
<0> it's like 30-40 seconds
<3> ah just images that wont load
<0> :\
<0> maybe it's a routing problem?
<0> some router must be lagging like hell
<3> and your http package is faster on other pages?
<0> ya
<0> takes 1 second or whatever
<0> for other sites
<0> it takes like under a second on this box
<0> for runescape.com
<6> wow
<6> Gotisch
<6> i'm sorry i lagged out
<1> use lynx ;]
<6> [16:45:56 - 01-31-06] [ sony`` ] lol badaas
<6> [16:45:58 - 01-31-06] [ sony`` ] i tried that
<6> [16:46:02 - 01-31-06] [ sony`` ] i was lik wtf is this then cried
<1> exec -- $binary(LYNX) -dump -nolist http://blah
<1> tahtll just give u the data with no html codes, etc.
<6> lol
<6> not on the box
<1> wget
<1> lol
<6> :X
<7> Natalie26 is a spammer
<7> onjoin msg, "your mirc etc, join..."
<8> =)
<8> yea those kinda nicks are known as spammers
<7> noy using mirc tho...
<7> not
<8> so pathetic anyways.. spam **** like that
<9> How can i include a config.tcl file in the main tcl script


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #tcl
or
Go to some related logs:

#c
#hardware
#beginner
#nhl
#politics
#sex
#flash
mp3 lbdt
belkin f5d7001 ubuntu
#nhl



Home  |  disclaimer  |  contact  |  submit quotes