Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TIdHTTP error details
#1
Dear All; when TIdHTTP::Get method throws out an EIdHTTPProtocolException, where do I find details of the error?
For instance:

Code:
TIdHTTP *IdHTTP;
AnsiString strURL="https://....";
//...
try{
  TMemoryStream *m = new TMemoryStream;
  IdHTTP->Get(strURL,m);
  m->SaveToFile("tst.txt");
  delete m;
}catch(EIdHTTPProtocolException &e){
  ShowMessage(e.Message);//shows "HTTP/1.1 400 Bad Request"
}
Thanks in advance. Boba.
Reply


Messages In This Thread
TIdHTTP error details - by Boba TC - 08-16-2022, 01:23 AM
RE: TIdHTTP error details - by fearcry - 08-16-2022, 01:27 PM
RE: TIdHTTP error details - by rlebeau - 08-16-2022, 07:30 PM
RE: TIdHTTP error details - by Boba TC - 08-20-2022, 04:06 AM
RE: TIdHTTP error details - by Boba TC - 08-20-2022, 11:27 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)