Atozed Forums

Full Version: hoWantProtocolErrorContent,
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
When compiling the project, the message is displayed: E2003 Undeclared identifier: 'hoWantProtocolErrorContent'

mIdHTTP1.Request.ContentType := 'application/json;charset=UTF-8';
mIdHTTP1.HTTPOptions := mIdHTTP1.HTTPOptions + [hoNoProtocolErrorException, hoWantProtocolErrorContent];

This parameter is needed to display the response text from the server with the response code 400.    When compiling in a normal project, everything goes fine, and when compiling in an IntraWeb project, this error occurs. Tell me how to solve the problem?