View Issue Details

IDProjectCategoryView StatusLast Update
0004432JEDI VCL04 Feature Requestpublic2008-09-04 04:54
ReportermiangAssigned Toobones 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version 
Target VersionFixed in Version3.35 
Summary0004432: HTTP Status Codes in TJvHttpUrlGrabber
DescriptionI think that TJvHttpUrlGrabber should have property showing http status code.

TJvHttpUrlGrabber = class(TJvProxyingUrlGrabber)
private
FHTTPStatus:string;
publishes
property HTTPStatus: string read FHTTPStatus write FHTTPStatus;
     

procedure TJvHttpUrlGrabberThread.Grab;
(...)
HttpQueryInfo(hDownload, HTTP_QUERY_STATUS_CODE , Buffer, dwBufLen, dwIndex);
Grabber.HTTPStatus:= StrPas(Buffer);
HasSize := HttpQueryInfo(hDownload, HTTP_QUERY_CONTENT_LENGTH, Buffer, dwBufLen, dwIndex);
(...)

or maybe there is another way to check if status code returned by a sever equals 404?
TagsNo tags attached.

Activities

miang

2008-08-29 05:05

reporter   ~0014527

there should be
      dwIndex := 0;
      dwBufLen := 1024;
before second call to HttpQueryInfo

obones

2008-09-03 09:18

administrator   ~0014529

OnError is a good place to test if the server refused to server, but having the status code could be interesting indeed.

miang

2008-09-04 03:52

reporter   ~0014541

when server returns something like:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>

The requested URL /aktualizacja/pliki/JB/BSTPlusJB_full_3.7.3.ex was not found on this server.


<hr>
<address>Apache/2.2.8 (Fedora) Server at aktualizacja.jst.pl Port 80</address>
</body></html>



OnError is not fired

obones

2008-09-04 04:54

administrator   ~0014542

This has now been added in SVN.

Issue History

Date Modified Username Field Change
2008-08-25 04:25 miang New Issue
2008-08-29 05:05 miang Note Added: 0014527
2008-09-03 09:18 obones Note Added: 0014529
2008-09-03 09:18 obones Status new => acknowledged
2008-09-04 03:52 miang Note Added: 0014541
2008-09-04 04:54 obones Status acknowledged => resolved
2008-09-04 04:54 obones Fixed in Version => Daily / SVN
2008-09-04 04:54 obones Resolution open => fixed
2008-09-04 04:54 obones Assigned To => obones
2008-09-04 04:54 obones Note Added: 0014542