Interesting, I had never heard about the HttpRequest class. You do not actually use it, though, so you might as well remove the first line. :-)

Thanks for sharing this snippet.