4WebHelp
 FAQ  •  Search  •  User Groups  •  Forum Admins  •  Smilies List  •  Statistics  •  Rules   •  Login   •  Register
Toggle Navigation Menu

 Persistant HTTP connection
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic
Author Message
Iyonix
WebHelper
WebHelper


Joined: 12 Nov 2002
Posts: 82
Location: Yarm, England

PostPosted: Mon May 05, 2003 10:45 am (20 years, 11 months ago) Reply with QuoteBack to Top

Why is this code not keeping the connection. It should keep it alive until the loop ends.

Code:
$kor = fsockopen("kor.elogical.net",80, $errno, $errstr, 30);
for($j=1;$j<$max;$j++){
fputs($kor, "GET http://kor.elogical.net/cgi-bin/search.pl?task=snum&num=".$j." HTTP/1.1\r\n".
"Host: kor.elogical.net\r\n".
"Cookie: user=username~pass=password\r\n".
"Connection: Keep-Alive\r\n\r\n");
}
fclose($kor);

________________________________
Iyonix
OfflineView User's ProfileFind all posts by IyonixSend Personal Message
Display posts from previous:      
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic


 Jump to:   




You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot edit your posts in this forum.
You cannot delete your posts in this forum.
You cannot vote in polls in this forum.


Page generation time: 0.254322 seconds :: 18 queries executed :: All Times are GMT
Powered by phpBB 2.0 © 2001, 2002 phpBB Group :: Based on an FI Theme