Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Jan : how to get html source?

www.cryer.info
Managed Newsgroup Archive

how to get html source?

Subject:how to get html source?
Posted by:"Serkan Güneş" (adm..@e-xtraportal.net)
Date:Sun, 8 Jan 2006 20:05:45

InternetOpen
InternetOpenUrl
InternetReadFile

I used these functions in order to obtain HTML code in any page. However if
an error exists on the page (like a typical 500 error), I got a text
including the error type such as 'VBScript runtime error' insted of HTML
source.
I also tried to use IdHTTP but the same thing has happened. But when I visit
this page using iexplorer I can see the whole page including errors but not
the error text: 'VBScript runtime error ' so how can I get the HTML source
in such pages??

Thanks
Serkan GUNES

Replies:

www.cryer.info
Managed Newsgroup Archive