Forum > Networking and Web Programming

TFPHTTPClient.SimpleGet catching exception


using Lazarus 2.0.12 on Windows and Linux

is it possible to catch exception of TFPHTTPClient.SimpleGet(URL , LMemoryStream);  when URL is not valid?

Or to Ping the URL before the call?

Thank you.

I dont see why not?

Use the TRY "The code" Except End;

 If you have already done this and it still pops up a screen in front of you this means most likely you are running the app under debug mode and should run it without debug for that to work..


[0] Message Index

Go to full version