If you have a valid visa (F1,B1 etc) which is not expired, then you dont need transit visa and can travel via london. If your visa is expired, then you need a transit visa through london