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

MarHan
MarHan Member Posts: 34
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

  • PatrickSchiefer
    PatrickSchiefer 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
  • MarHan
    MarHan Member Posts: 34
    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