Now using Symfony2's HttpFoundation.