11-21-2022, 11:59 AM
(This post was last modified: 11-21-2022, 12:00 PM by Сергей Александрович.)
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?
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?