Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

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 this return a 404?

0
Posted

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 this return a 404?

0

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’ referen

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123