Solved

Prevent Crashing in FPIETTE's HTTP Cli

Posted on 1998-09-01
2
225 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
2 Comments
 
LVL 7

Expert Comment

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

Accepted Solution

by:
EmmDieh earned 50 total points
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

762 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now