Solved

Prevent Crashing in FPIETTE's HTTP Cli

Posted on 1998-09-01
2
235 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
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…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

691 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