parse HTTP link headers and HTML links