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.
In reply to Re^2: Downloading first X bytes of a file
by moritz
in thread Downloading first X bytes of a file
by pc0019
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |