Description of URLChecker utility |
My site contains the rather large list of the links on VFP-sites... and it's rather tiresome occupation from time to time to check: all whether they "alive". I have not found a good utility for this purpose under hands (probably, poorly searched :-) well, ...and I have decided to write myself... Pair of moment predetermining that this utility is written just so, instead of differently:
It is expected, that the imported text file has the following format:
Unique number | URL-address | Description |
Number | String | String |
The fields are demarcated by a symbol of horizontal tabulation - '\t' and in
an extremity of the right field is marked by new line symbol - '\n'
Attention! The utility is not made any controlling of errors of
the indicated format for a text file that your want to import, therefore be are
accurate concerning to format of data during to dataorigination, please.
The export of datas is executed in a text file of the following format::
Unique number | URL-address | Description | Result of verification | Status Code |
Number | String | String | String | Number |
First three columns correspond to the imported file, while last two according to the description of function CHttpFile::QueryInfoStatusCode (...) from MSDN. I shall bring them here, on any case:
Result | Status Code |
Success | 200-299 |
Information | 300-399 |
Request error | 400-499 |
Server error | 500-599 |
Undefined | 0 |
The code in the last table line is added by me.
All parameters has gone in on one tab of the window of properties:
Note: Besides an asynchronous mode, I had to allow a possibility synchronous connection, but I very much do not advise to you used it. The problem consists that the small number of Web-servers breaks off asynchronous connection before I manage to receive from them an information (from all two hundred sites such there were only some pieces at me :-)... Certainly, very much even can be, that I did not manage simply on all 100% correctly to write a code of processing asynchronous connection :-( On synchronous mode of connection indicated breaks off connections does not happen, however in this case there is no possibility to break off process of communication with the Web-server, except to finish process from System Task Manager :-( while in an asynchronous mode, such connections interrupt by error without any of an exit code (Undefined) or on the expiration of Time out. Apparently, it is necessary in addition to check up such sites from IE. ... And it will not be a primary amount sites, not so whether :-)
All is very simple. Only choice menu item Options/Start ... and you can observe process of checking of the links. Well, if you will interrupt process (by menu item Options/Stop), there will be a condition, similar shown on following picture:
Pay attention, that the link, on which the process of monitoring was interrupted, is in a condition Aborted (third line on picture 2). After that, you can continue monitoring since the interrupted link - Options/Continue, ... well, or all at first...
Current condition of datas you can save/read on disk files with the .uck extension
Download [116KB]