PDA

View Full Version : Connection closed by remote server


JÿGius³
07-31-2004, 11:24 PM
Hi all.

I'm using Opera and whenever I start the spider once in a while
I get this ugly messag. Usually, it appears after 5 minutes (9 indexed
pages).
The Opera web site says...
The server sent a "Content-Length" HTTP header saying it would send "n" bytes but only sent "n-x", x being a positive, non-zero number.

Any Ideas?


Bye :-)

JÿGius³

Charter
08-01-2004, 12:34 AM
http://www.opera.com/support/search/supsearch.dml?index=170 ;)

JÿGius³
08-01-2004, 01:19 AM
Hi:D

And so? I know this page... I also included part of it.
mmmmh.....
This problem occurs also with lynx.
The problem is for 'dig 1.8.3.

'dig 1.8.0 has no problems.

Bye.


JÿGius³:rolleyes:

Charter
08-01-2004, 01:48 AM
Hi. I don't believe this to be a PhpDig problem. I don't think that PhpDig is trying to reopen an already opened connection. I think that the server said that it was going to send a certain number of bytes, and then went ahead and sent a different number of bytes, ergo the message. The reason that this shows now is probably because PhpDig 1.8.3 sends and receives headers when retrieving page content, whereas PhpDig 1.8.0 didn't deal with headers when retrieving page content. Perhaps try PhpDig on something other than through a proxy server and see if the message goes away. If the server is in fact sending bad data, what is PhpDig to do?

JÿGius³
08-01-2004, 10:30 AM
HI:-)

The reason that this shows now is probably because PhpDig 1.8.3 sends and receives headers when retrieving page content, whereas PhpDig 1.8.0 didn't deal with headers when retrieving page content.

Well. Where is the code that does this?
Would do you tell me? So I can investigate the problem.

Ciao ciao.

Thanks.

JÿGius³

Charter
08-01-2004, 10:36 AM
It is function phpdigGetUrl in the robot_functions.php file. Make sure you have the robot_functions.php file from this (http://www.phpdig.net/showthread.php?postid=4850#post4850) post.