{"title":"HttpRequestMessage data type","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/methods-auto/httprequestmessage/httprequestmessage-data-type/","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/httprequestmessage/httprequestmessage-data-type, 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/httprequestmessage/httprequestmessage-data-type","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":"Represents an HTTP request message.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":2,"title":"Instance methods","slug":"instance-methods","at":96,"chars":1565},{"level":2,"title":"Related information","slug":"related-information","at":1661,"chars":117}],"text":"> Version: _Available or changed with runtime version 1.0._\nRepresents an HTTP request message.\n## Instance methods\nThe following methods are available on instances of the HttpRequestMessage data type.\nMethod name|Description\nContent([HttpContent])<httprequestmessage-content-method>|Gets or sets the contents of the HTTP message.\nGetCookie(Text, var Cookie)<httprequestmessage-getcookie-method>|Gets the specified cookie given a name.\nhttprequestmessage-getcookienames-method|Gets the list of cookie names.\nGetHeaders(var HttpHeaders)<httprequestmessage-getheaders-method>|Gets a reference to the collection of HTTP request headers.\nhttprequestmessage-getrequesturi-method|Gets the URI used for the HTTP request.\nhttprequestmessage-getsecretrequesturi-method|Gets the secret URI used for the HTTP request.\nMethod([Text])<httprequestmessage-method-method>|Gets or sets the method type as defined in the HTTP standard.\nRemoveCookie(Text)<httprequestmessage-removecookie-method>|Removes the specified cookie given a name.\nSetCookie(Text, Text)<httprequestmessage-setcookie-string-string-method>|Sets the cookie given a name and value.\nhttprequestmessage-setcookie-cookie-method|Sets the cookie given a cookie object.\nSetRequestUri(Text)<httprequestmessage-setrequesturi-method>|Sets the URI used for the HTTP request.\nSetSecretRequestUri(SecretText)<httprequestmessage-setsecretrequesturi-method>|Sets the secret URI used for the HTTP request.\n> NOTE\n> For performance reasons all HTTP, JSON, TextBuilder, and XML types are reference types, not value types. Reference types holds a pointer to the data elsewhere in memory, whereas value types store its own data.\n## Related information\nGet Started with AL<../../devenv-get-started>\nDeveloping Extensions<../../devenv-dev-overview>"}