Some more namespacing. Also make curl follow HTTP redirects.