Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
IdHTTP corrections when proxy is used
#6
(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.

Reply


Messages In This Thread
IdHTTP corrections when proxy is used - by NevTon - 04-29-2019, 01:17 PM
RE: IdHTTP corrections when proxy is used - by rlebeau - 05-08-2019, 07:01 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)