{"title":"HttpContent.GetHeaders(var HttpHeaders) Method","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/methods-auto/httpcontent/httpcontent-getheaders-method/","by":"JOP-AL","license":"Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/httpcontent/httpcontent-getheaders-method, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/httpcontent/httpcontent-getheaders-method","source":{"name":"Business Central developer and IT pro docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-devitpro-pb","commit":"828b6ee72fcd75755627cd6011f3d20899217ab2","date":"2026-11-19"},"checked":"2026-11-19","description":"Gets the HTTP content headers as defined in RFC 2616.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":1,"title":"HttpContent.GetHeaders(var HttpHeaders) Method","slug":"httpcontentgetheadersvar-httpheaders-method","at":0,"chars":883},{"level":2,"title":"Syntax","slug":"syntax","at":163,"chars":79},{"level":2,"title":"Parameters","slug":"parameters","at":242,"chars":203},{"level":2,"title":"Return Value","slug":"return-value","at":445,"chars":299},{"level":2,"title":"Related information","slug":"related-information","at":744,"chars":139}],"text":"# HttpContent.GetHeaders(var HttpHeaders) Method\n> Version: _Available or changed with runtime version 1.0._\nGets the HTTP content headers as defined in RFC 2616.\n## Syntax\n```al\n[Ok := ]  HttpContent.GetHeaders(var Headers: HttpHeaders)\n```\n## Parameters\nHttpContent\nType: httpcontent-data-type\nAn instance of the httpcontent-data-type data type.\nHeaders\nType: ../httpheaders/httpheaders-data-type\nThe HTTP headers associated with the content.\n## Return Value\n*[Optional] Ok*\nType: ../boolean/boolean-data-type\nAccessing the HttpContent property of HttpResponseMessage in a case when the request fails will result in an error. If you omit this optional return value and the operation does not execute successfully, a runtime error will occur.\n## Related information\nhttpcontent-data-type\nGet Started with AL<../../devenv-get-started>\nDeveloping Extensions<../../devenv-dev-overview>"}