Vitaliy wrote: > Jake Anderson wrote: > = >> In his shoes I'd write a little python script (php can do threading but >> its not as nice) that when a request comes in, fires off a bunch of >> threads to go and grab data, when they return you format them then pump >> them out to the client as they come in (rember to flush the buffers). >> = > > OK, this is exactly what I was getting at. > > I was telling David (the web developer) that it seems that the data is = > returned as it becomes available. In other words, if Digikey's website wa= s = > down, you would get all the data from other websites as it became availab= le, = > and then an error at the bottom of the page saying that Digikey.com has = > timed out. > > David argues that that is impossible ("that's not how HTTP works"), and t= hat = > FindChips.com goes out, grabs ALL the data, and then puts it in HTML form= at = > and sends it to the browser. > > My understanding is that since the server feeds HTML to the browser in = > chunks, it does not need to know what the footer looks like, when it star= ts = > sending the header. > > = >> My programming services are available ;-> >> = > > I will definitely keep it in mind. BTW, David is also a Python/Django fan = > who is not too excited about PHP -- is that the new trend? :) > > Vitaliy = > > = Hi Vitaliy. Sorry for piping up so late. It is most likely that the FindChips webserver is processing what is = called a No-Parsed-Header response, and that the script on the server is = =E8collating=E8 the results of mltiple =E8source=E8 requests, formatting th= em, = and then dumping the results to the client (you) as the results become = available. I have done something similar before. It is relatively easy to do in = Perl with the CGI module. It requires web-server support as well as = special programming methods. See the references like: http://www.oreilly.com/openbook/cgi/ch03_08.html Other names the Non-Parse-Header concept goes by is Server Push, NPH, = and more. Rolf -- = http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist