`path` shouldn't include the host, I don't think, so it seems confusing to put `localhost/` here.  Why not just `/`?