generalized link header extraction