so the problem isn't in the code?
i tried it initially on a different site (www.livescore.com)
with the same outcome.
that's why i thought it was from the code
egghttp looks for a "<" to locate the "body" of the http response... you'll have to change the output of the site to include a "<" or alter the way egghttp locates the end of the header. (all header fields (should) start with a single word that ends with a ":") Make strikelight fix it
but livescore.com is a normal site with normal http code.
anyways thanks for the info, i'll try to change egghttp to give me everything and i'll deal with the dump my self.
SaPrOuZy wrote:but livescore.com is a normal site with normal http code.
anyways thanks for the info, i'll try to change egghttp to give me everything and i'll deal with the dump my self.
There's nothing wrong with the http part...it's the part of egghttp dealing with the content that expects markup...your ip is probably the last line of [egghttp:headers $sock], so try
thx for ur reply.
my main issue is not getting my ip
it was just an example that i tried.
what am trying is to get http://www.livescore.com
am making a script to get world cup matches scores and post them on the channel.
egghttp worked with other sites, but it seems it's not owrking with livescore.com the data i get is empty.
anyway now am going to try to exec a wget on the site , rename the file , and work on the file hehe
SaPrOuZy wrote:but livescore.com is a normal site with normal http code.
anyways thanks for the info, i'll try to change egghttp to give me everything and i'll deal with the dump my self.
You should have said so in the first place...what happens when you fetch livescore.com using your script? (it seems most of the content is on a single line - which would be impossible to transmit in a single PRIVMSG)
btw: the markup on that page sucks - have fun parsing it