I did some more experimenting with which URLs retrieve ok and which ones don't
and have a new test program. With this test program url2,4,5,8 have errors. the
other
urls retrieve ok. So, I tried to identify what is unique about the urls that
fail. All of these
are a list of up to 25 items per page. The pages that have a full 25 items all
seem
to work ok. Some, but not all of the partial pages fail.
from firefox page info:
url2 length 5,235
url4 length 7,101
url5 length 5,249
url8 length 4,952
url7 length 2,675 (this is a partial page that retrieves ok)
My theory is there is a problem with page lengths in the 4K-8K range.
Also seems to be unique to this site as I've been unable to reproduce on other
sites.
I am also wondering if the partial pages have some unusual data in them (such as
a strange hexadecimal character) but I haven't identified anything like that.
----------------------------------------------------------------------
{$MODE DELPHI}
Program testhttp;
uses
httpsend, classes;
var
tstg:TStrings;
tstm:TStream;
bool:boolean;
url1:AnsiString;
url2:AnsiString;
url3:AnsiString;
url4:AnsiString;
url5:AnsiString;
url6:AnsiString;
url7:AnsiString;
url8:AnsiString;
begin
tstg:=Tstringlist.create;
tstm:=TMemoryStream.create;
url1:='http://www.ocpafl.org/pls/webappI/get_parcel_by_addr?s_name=moon&s_num=&s_dir=&max_row=234&set_number=26&s_type=&query_data=1111111A&next_row=MOONBEAM238282104841001740&rec_set=I209T234';
url2:='http://www.ocpafl.org/pls/webappI/get_parcel_by_addr?s_name=moon&s_num=&s_dir=&max_row=234&set_number=226&s_type=&query_data=1111111A&next_row=MOONSHIRE10058312319194812000&rec_set=I209T234';
url3:='http://www.ocpafl.org/pls/webappI/get_parcel_by_addr?s_name=moons&s_num=&s_dir=&max_row=99&set_number=76&s_type=&query_data=1111111A&next_row=MOONSHINE+CREEK11351312232266201920&rec_set=I74T99';
url4:='http://www.ocpafl.org/pls/webappI/get_parcel_by_addr?s_name=moonb&s_num=&s_dir=&max_row=65&set_number=51&s_type=&query_data=1111111A&next_row=MOONBEAM564282104841001630&rec_set=I40T65';
url5:='http://www.ocpafl.org/pls/webappI/get_parcel_by_addr?s_num=&s_dir=&s_name=summerb&s_type=&DI_0=on&DI_1=on&DI_2=on&DI_3=on&DI_4=on&DI_5=on&DI_6=on&x=23&y=22';
url6:='http://www.ocpafl.org/pls/webappI/get_parcel_by_addr?s_num=&s_dir=&s_name=moonr&s_type=&DI_0=on&DI_1=on&DI_2=on&DI_3=on&DI_4=on&DI_5=on&DI_6=on&x=29&y=22';
url7:='http://www.ocpafl.org/pls/webappI/get_parcel_by_addr?s_name=moonr&s_num=&s_dir=&max_row=26&set_number=26&s_type=&query_data=1111111A&next_row=MOONRAKER568282104840200500&rec_set=I1T26';
url8:='http://www.ocpafl.org/pls/webappI/get_parcel_by_addr?s_num=&s_dir=&s_name=partin&s_type=&DI_0=on&DI_1=on&DI_2=on&DI_3=on&DI_4=on&DI_5=on&DI_6=on&x=37&y=16';
bool:=HTTPGetText(url1,tstg);
If (bool=False) Then Begin
writeln('url1 ERROR');
End
Else
Writeln('url1 OK');
bool:=HTTPGetText(url2,tstg);
If (bool=False) Then Begin
writeln('url2 ERROR');
End
Else
Writeln('url2 OK');
bool:=HTTPGetText(url3,tstg);
If (bool=False) Then Begin
writeln('url3 ERROR');
End
Else
Writeln('url3 OK');
bool:=HTTPGetText(url4,tstg);
If (bool=False) Then Begin
writeln('url4 ERROR');
End
Else
Writeln('url4 OK');
bool:=HTTPGetText(url5,tstg);
If (bool=False) Then Begin
writeln('url5 ERROR');
End
Else
Writeln('url5 OK');
bool:=HTTPGetText(url6,tstg);
If (bool=False) Then Begin
writeln('url6 ERROR');
End
Else
Writeln('url6 OK');
bool:=HTTPGetText(url7,tstg);
If (bool=False) Then Begin
writeln('url7 ERROR');
End
Else
Writeln('url7 OK');
bool:=HTTPGetText(url8,tstg);
If (bool=False) Then Begin
writeln('url8 ERROR');
End
Else
Writeln('url8 OK');
tstg.Free;
tstm.Free;
end.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public