I'm using the wininet dll to build an internet spider for special purposes.
It looks alright but my component (written in Delphi 4.0) fails on a
particular URL. Other URLs are going fine. I think it has something to
do with the /? but in the browser it works fine.
The url is:
http://www.ilse.nl/?COMMAND=webwijzer;HI_CATEGORY=Amusement%20en%20Vrije%20T
ijd
What I do briefly:
FHinet := InternetOpen(PChar(FUserAgent), INTERNET_OPEN_TYPE_PRECONFIG,
nil, nil, FSynchronous);
Crack(url); /the url is cracked up and I fill the FUrlPath and FExtrainfo
for example
HConnect := InternetConnect(FHInet, PChar(FHost), FPort, Pchar(FUserName),
Pchar(FPassword), FSchemeNumber, 0, 0);
if HConnect = nil then ShowError('Error on Connect');
HRequest := HTTPOpenRequest(HConnect,
PChar(FMethod),PChar(FURLPath+FExtrainfo),PChar(FHTTPVersion),'',PAnsiChar(@
FAccepttypes[0]),FFlags,0);
if HRequest = nil then ShowError('Error OpenRequest');
if not HTTPSendRequest(HRequest,
PChar(Headers),Length(Headers),FRequestStream.Memory, FRequestStream.Size)
then begin
ShowError('Error on HTTPSendRequest:');
end;
The call to HTTPSendRequest never comes back!
Further, is HTTPSendRequest still supported, or can I better use
HttpSendRequestEx
I've heard that Microsoft keeps a buglist on wininet.dll , were can I find
that list?
Thanks in advance
Jeroen Bakker