<DIV>Hi all,</DIV>
<DIV>&nbsp;</DIV>
<DIV>First off, I'd like to say thanks to Ken Whitesell for giving me some much needed help.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Here's my problem:&nbsp; I am using an HTTPClient instance to connect to a webpage, and am trying to retrieve its contents and display to the screen line by line, using the lineReceived method.&nbsp; This is all being done in an .rpy file.&nbsp; For some reason, I am only receiving the header information:</DIV>
<DIV>---------------------------------------------</DIV>
<DIV>[start line received]<BR>&nbsp; &nbsp; &nbsp; &nbsp;HTTP/1.0 200 OK<BR>[end line received]<BR>[start line received]<BR>&nbsp; &nbsp; &nbsp; &nbsp;Cache-Control: private<BR>[end line received]<BR>[start line received]<BR>&nbsp; &nbsp; &nbsp; &nbsp;Content-Type: text/html<BR>[end line received]<BR>[start line received]<BR>&nbsp; &nbsp; &nbsp; &nbsp;Set-Cookie: PREF=ID=aacd1eed2e435ca5:TM=1118474192:LM=1118474192:S=QyMnwhj46cXbhy_1; expires=Sun, 17-Jan-2038 19:14:07 GMT; path=/; domain=.google.com<BR>[end line received]<BR>[start line received]<BR>&nbsp; &nbsp; &nbsp; &nbsp;Server: GWS/2.1<BR>[end line received]<BR>[start line received]<BR>&nbsp; &nbsp; &nbsp; &nbsp;Date: Sat, 11 Jun 2005 07:16:32 GMT<BR>[end line received]<BR>[start line received]<BR>&nbsp; &nbsp; &nbsp; &nbsp;Connection: Close<BR>[end line received]<BR>[start line received]<BR>&nbsp; &nbsp; &nbsp; &nbsp;<BR>[end line received]</DIV>
<DIV>---------------------------------------------</DIV>
<DIV>&nbsp;</DIV>
<DIV>Does anyone know if there is some incompatibility in using lineReceived with the format of a webpage (i.e. maybe they are missing the standard EOL delimiters)?&nbsp; dataReceived works fine and outputs the whole webpage at once.&nbsp; </DIV>
<DIV>&nbsp;</DIV>
<DIV>
<DIV>Also, I am using handleRequestEnd to detect the end of the transmission and call request.finish(),&nbsp; but it does not seem to be getting called at all - the browser just keeps waiting for more data.&nbsp; I've put a simple request.write("handleRequestEnd called") call on the first line of the method and it does not get written to the screen.&nbsp; I can't find any explanation for how to use most of the methods in the HTTPClient class in the API - is there a better way to do this (i.e. one that works!) ?</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks,</DIV>
<DIV>Andrea</DIV></DIV><p>
                <hr size=1>Discover Yahoo!<br> 
Have fun online with music videos, cool games, IM & more. <a href="http://us.rd.yahoo.com/evt=32660/*http://discover.yahoo.com/online.html">Check it out!</a>