… | |
… | |
456 | SHOWCASE |
456 | SHOWCASE |
457 | This section contaisn some more elaborate "real-world" examples or code |
457 | This section contaisn some more elaborate "real-world" examples or code |
458 | snippets. |
458 | snippets. |
459 | |
459 | |
460 | HTTP/1.1 FILE DOWNLOAD |
460 | HTTP/1.1 FILE DOWNLOAD |
461 | Downloading files with HTTP cna be quite tricky, especially when |
461 | Downloading files with HTTP can be quite tricky, especially when |
462 | something goes wrong and you want tor esume. |
462 | something goes wrong and you want tor esume. |
463 | |
463 | |
464 | Here is a function that initiates and resumes a download. It uses the |
464 | Here is a function that initiates and resumes a download. It uses the |
465 | last modified time to check for file content changes, and works with |
465 | last modified time to check for file content changes, and works with |
466 | many HTTP/1.0 servers as well, and usually falls back to a complete |
466 | many HTTP/1.0 servers as well, and usually falls back to a complete |