Solved

Prevent Crashing in FPIETTE's HTTP Cli

Posted on 1998-09-01
2
232 Views
Last Modified: 2010-04-04
I have a problem when using he's components..
If i try to GET a file from a url and it does not exist
it crashes, and same with alot of other things..
i tryed with
 Try blabla.
  Except on Eblabla...
Still wont help..
What can i do.. Example please...
 
0
Comment
Question by:brainware
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 7

Expert Comment

by:BlackMan
ID: 1338401
Have you tried to post it on the support maillist?
0
 
LVL 1

Accepted Solution

by:
EmmDieh earned 50 total points
ID: 1338402
The following works in my Application. I.e. the code catches
the exception and displays a message when the file cannot be
found (StatusCode = 404). Perhaps you have an old version
of the component set. Check for the latest version.

      HttpClient: THttpCli;

    TransferStartTime := TimeGetTime;
    try
      HTTPClient.Get;
      TransferEndTime := TimeGetTime;
    except
      with HTTPClient do
        MemoAdd(Format('  GET Failed ! StatusCode = %d, ReasonPhrase = %s', [StatusCode, ReasonPhrase]));
    end;

0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question