THttpScan FAQ - Troubleshooting
Does THttpScan support window.open("sub-page.html")links?
Yes, THttpScan finds this kind of link, you can test that easily by running Demo.exe included in the demo project and starting from the following page:
If I pass an invalid URL when calling the Start method, this event is triggered but the error code is 0 and there is no error message. Shouldn't this return a 404?
The 404 error code is returned by an existing and responding server when the specified HTML page does not exist.
E.g. in http://www.datastead.com/wrongpage.htm, the server (datastead.com) will return the 404 error.
However if the server name itself is wrong (e.g. http://www.dataZtead.com/wrongpage.htm), the host name "dataZtead.com" does not exist, so it cannot return any error code.
The "0" error code means that the specified server does not exist or does not reply.
When I paste a long URL in the edit field, no link is reported
If you paste the URL in an TEdit field, the TEdit field truncates the URL to 255 characters.
The workaround consists to use a TMemo field instead (be sure to disable the WordWrap property, otherwise the URL could be truncated with line feeds).
When I build my project using C++Builder, I get the following errors:
Unresolved external 'InternetCloseHandle' referenced from BORLAND\CBUILDER\IMPORTS\THTSCAN.LIB|HttpScan
Unresolved external 'InternetCrackUrlA' referenced fromBORLAND\CBUILDER\IMPORTS\THTSCAN.LIB|HttpScan
Unresolved external 'InternetCombineUrlA' referenced from BORLAND\CBUILDER\IMPORTS\THTSCAN.LIB|HttpScan
- Go to Project | Add to Project
- in the "file type" listbox at the bottom of the tab, choose ".lib" files,
- navigate to your CBuilder\Lib directory, and choose either inet.lib (CBuilder4) or wininet.lib (CBuilder5 and CBuilder6).
- Build and save your project.
When I build my project using C++Builder, I get the following error:Unable to find package import: THtScan.bpi
Go to Project | Options | Packages. Then go to the "Runtime packages" groupbox, at the bottom of the tab. Go to the end of the packages list edit box, and remove THtScan.bpi.