function compatibility for linux
add time measurement
check target redirection for 404 responses