HTTP GET messaged do not have any content so this line would always crash with NullReferenceException; use request.ToString() instead