Article View: borland.public.cppbuilder.internet.web
Article #734IE7 Navigate failing inside a thread
From: Tom
Date: Mon, 06 Nov 2006 19:51
Date: Mon, 06 Nov 2006 19:51
36 lines
1993 bytes
1993 bytes
Calling Form1->Browser->Navigate(WideString(http://www.google.com)); works fine when clicking a button. But, if I change it so that when the button is clicked a thread is spawned and that thread makes the exact same call as above, I get the following error message: Cannot find 'http://www.google.com'. Make sure the path or Internet address is correct. This only occurs with IE7, IE6 and below function just fine. The alternate solution would be to use Indy to retrieve the source code (which is all I'm doing) but even after setting the UA some sites still know it's not a web browser and reject the request. I'm using the latest snapshot of Indy and making a simple Get request. For example: http://siteexplorer.search.yahoo.com/search?ei=UTF-8&bwm=i&bwmf=u&searchbwm=Explore+URL&p=http%3A%2F%2Fwww.google.com/ Indy receives: "HTTP/1.1 999 Unable to process request at this time -- error 999" but a web browser receives the source code as expected. I've also tried HTTP 1.0 but the error remains the same. I've got the UA set as follows: "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)"; Thanks in advance, Tom
Technical Details
Message-ID:
<454f924b$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: feeec,8c9cd506b6ec73e9,start X-Google-Attributes: gidfeeec,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Tom" <tom@nospam.net> Newsgroups: borland.public.cppbuilder.internet.web Subject: IE7 Navigate failing inside a thread Date: Mon, 6 Nov 2006 13:51:45 -0600 Lines: 38 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 68.1.78.156 Message-ID: <454f924b$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1162842699 68.1.78.156 (6 Nov 2006 11:51:39 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail