Replace wget with curl