RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TSOAPAttachment.Headers Property

Indicates the values of the headers received with the attachment.

Pascal
property Headers: TStrings;
C++
__property TStrings Headers;

Read Headers to determine the headers that appeared in the part of the multipart form that contained the attachment. Headers is only intended for attachments that the application receives. When sending attachments, the application automatically generates the headers that accompany the attachment. 

Headers is a string list where each string has the form HeaderName=Value. HeaderName is the name of the header, such as Content-Id, Content-Location, Content-Size, and so on. Value is the string that is the header value. Note that if you are only interested in the content type, you can use the ContentType property instead.

Note: Although the MIME specification states that the Content-Length header is optional, TSoapAttachment requires this header and raises an exception if it is not present.
 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!