Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > inet vs. ie

Reply
Thread Tools

inet vs. ie

 
 
Web Search Store
Guest
Posts: n/a
 
      01-21-2006
Hello,

I'm spidering some search engine results and downloading them using the
inet, internet transfer control. Then also using the Internet Explorer,
because when it finishes downloading a site, the url parameter of the web
browser document will return the real final url name, instead of showing the
long string the search engine used to get to the same site.

Dim webdoc1 As HTMLDocument
Set my_ie = New SHDocVw.InternetExplorer
Set webdoc1 = my_ie.Document
realurl = webdoc1.url

Problem is Internet Explorer seems to slow down the program, and finally
stop it. Not sure why, probably using up memory. Is there another way to
get the real Url without calling Internet explorer?

Thanks.

Scott Baxter



 
Reply With Quote
 
 
 
 
=?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
Guest
Posts: n/a
 
      01-22-2006
Scott,
Use the .NET HttpWebrRequest / response classes, or the simplified WebClient
class.
There is plenty of good sample code around. Don't incur the overhead of the
WebBrowser control for multiple requests unless you have a specific need to.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com




"Web Search Store" wrote:

> Hello,
>
> I'm spidering some search engine results and downloading them using the
> inet, internet transfer control. Then also using the Internet Explorer,
> because when it finishes downloading a site, the url parameter of the web
> browser document will return the real final url name, instead of showing the
> long string the search engine used to get to the same site.
>
> Dim webdoc1 As HTMLDocument
> Set my_ie = New SHDocVw.InternetExplorer
> Set webdoc1 = my_ie.Document
> realurl = webdoc1.url
>
> Problem is Internet Explorer seems to slow down the program, and finally
> stop it. Not sure why, probably using up memory. Is there another way to
> get the real Url without calling Internet explorer?
>
> Thanks.
>
> Scott Baxter
>
>
>
>

 
Reply With Quote
 
 
 
 
Web Search Store
Guest
Posts: n/a
 
      01-22-2006
Peter,

Thanks a lot for this info. I'll check it out.

Scott
"Peter Bromberg [C# MVP]" <> wrote in message
news:FF16003B-C0FB-49BE-B39C-...
> Scott,
> Use the .NET HttpWebrRequest / response classes, or the simplified
> WebClient
> class.
> There is plenty of good sample code around. Don't incur the overhead of
> the
> WebBrowser control for multiple requests unless you have a specific need
> to.
> Peter
>
> --
> Co-founder, Eggheadcafe.com developer portal:
> http://www.eggheadcafe.com
> UnBlog:
> http://petesbloggerama.blogspot.com
>
>
>
>
> "Web Search Store" wrote:
>
>> Hello,
>>
>> I'm spidering some search engine results and downloading them using the
>> inet, internet transfer control. Then also using the Internet Explorer,
>> because when it finishes downloading a site, the url parameter of the web
>> browser document will return the real final url name, instead of showing
>> the
>> long string the search engine used to get to the same site.
>>
>> Dim webdoc1 As HTMLDocument
>> Set my_ie = New SHDocVw.InternetExplorer
>> Set webdoc1 = my_ie.Document
>> realurl = webdoc1.url
>>
>> Problem is Internet Explorer seems to slow down the program, and finally
>> stop it. Not sure why, probably using up memory. Is there another way
>> to
>> get the real Url without calling Internet explorer?
>>
>> Thanks.
>>
>> Scott Baxter
>>
>>
>>
>>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
JavaMail GNUMail, Knife, Classpath and gnu.inet cbongior@stny.rr.com Java 0 07-07-2005 03:46 PM
Sockets closes after 15 minutes on inet not on lan Jan Jansen Java 2 02-22-2005 10:11 AM
Help c2621 ACL - Inet/Dmz/Lan Gudjon Bjarnason Cisco 0 05-18-2004 09:10 PM
IO::Socket::INET on Cygwin doesnt work? Rad Perl 0 05-05-2004 02:43 PM
INet control behavior in Java Marshall Cummings Java 4 01-21-2004 11:49 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57