RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
THTTPReqResp.CheckContentType Method

Raises an exception if the response to a SOAP method call has a common invalid content-type header.

Pascal
procedure CheckContentType;
C++
__fastcall CheckContentType();

CheckContentType checks the Content-type header of the response that THTTPReqResp receives after sending a request to the Web Service application. If it recognizes the content-type as invalid, CheckContentType raises an ESOAPHTTPException

CheckContentType does not rule out all invalid content types, only the most common. 

 

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