in reply to Re: Downloading first X bytes of a file
in thread Downloading first X bytes of a file
but why you would load only the first 512 bytes of a website I cannot fathom
I can only guess pc0019's intentions, but if had to write a script that fetches the title of an HTML page, I'd go in that direction. Download the first chunk, check if the title is in it. If not, check if </head> already occured. If yes, there is no title. If not, get the next chunk.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Downloading first X bytes of a file
by CountZero (Bishop) on Jun 08, 2008 at 21:21 UTC | |
by moritz (Cardinal) on Jun 08, 2008 at 21:32 UTC |