Options

HttpResponseMessage.Headers() does not contain Content-Type and Content-Disposition?

MarHanMarHan Member Posts: 33
Hi Community,

it seems that the HttpResponseMessage.Headers() method does not return the http headers for "Content-Type" and "Content-Disposition".

Headers traced with Fiddler:
hjuhlv062ynk.png

Headers List in AL-Code debugging:
ie6gdlvp5kk9.png

Does anyone know why or how to access them?

I'm doing a http get for a file and want to get its mimetype and filename through these two http headers.

Thanks in advance for your help!

Markus

Answers

  • Options
    PatrickSchieferPatrickSchiefer Member Posts: 3
    Does the opposite site send this header? Check in Postman if this header is available. If not contact the developer of the api
  • Options
    MarHanMarHan Member Posts: 33
    Does the opposite site send this header? Check in Postman if this header is available.

    The first screenshot is from fiddler which captured the http response message
Sign In or Register to comment.