Retrieve Header Details

Hi,

I am trying to capture header details from an incoming trigger . How to capture all header details in a file.

Thanks