move index and term to http header