Download request.php - LAN fix and code cleanup