Try only sending the Connection: Close header on the last request.
Try only sending the Connection: Close header on the last request. EDIT: Clarification $fp = fsockopen("example.com", 80, $errno, $errstr, 30); if (!$fp) { echo "$errstr ($errno)\n"; } else { $out = "GET /page1. Html HTTP/1.1\r\n"; $out .
= "Host: example.com\r\n"; // DON'T SEND Connection: Close HERE fwrite($fp, $out); while (!feof($fp)) { fgets($fp, 128); } $out = "GET /page2. Html HTTP/1.1\r\n"; $out . = "Host: example.com\r\n"; // THIS IS THE LAST PAGE REQUIRED SO SEND Connection: Close HEADER $out .
= "Connection: Close\r\n\r\n"; fwrite($fp, $out); while (!feof($fp)) { fgets($fp, 128); } fclose($fp); }.
If I send just Connection: Close, how will the server know that I need tha page2. Html to be retrieved? – Tamas Pap Oct 19 '10 at 18:04 You still send all the other headers for each page but only send Connection: Close for the last page.
– rojoca Oct 19 '10 at 20:28 Infinite loading time..in this case.. Thank you anyway;) – Tamas Pap Oct 20 '10 at 13:55 I think you need to send all the requests though first before you start reading the response. According to the HTTP 1.1 spec the responses should all return in the correct order but you will have to manually separate them – rojoca Oct 20 '10 at 15:58.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.