adding content length to request, removing console statment