05-08-2019, 07:01 PM
(05-08-2019, 10:31 AM)NevTon Wrote: If You correct the line, to this:
Code:raise EIdHTTPProtocolException.CreateError(LResponseCode, Response.ResponseText, ReadStringAsCharset(LTempStream, Response.CharSet));
than Exception.Message is set
Done and checked in.
(05-08-2019, 10:31 AM)NevTon Wrote: but still no content is available in EIdHTTPProtocolException(E).ErrorMessage.
Did you check whether the LTempStream is empty or not? It makes sense for a 407 response to not carry any body data, since a web browser would not normally display such content to the user, since it would be busy prompting the user for credentials instead.