I see a description of how to access headers here, but can’t seem to find any examples of where they are useful. Some tutorials include code that access the headers, but without any explanation of why. Can anyone shed any light?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It may be the case that you need to send some information with the message that is not directly related to the body itself. This is a similar concept to HTTP headers. An example of this would be that when a message is forwarded to the error queue, there is some information sent along with it to help you understand what went wrong(including the exception).