473,378 Members | 1,378 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

inet vs. ie

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

Jan 22 '06 #1
2 1240
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

Jan 22 '06 #2
Peter,

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

Scott
"Peter Bromberg [C# MVP]" <pb*******@yahoo.nospammin.com> wrote in message
news:FF**********************************@microsof t.com...
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

Jan 22 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Laphan | last post by:
Hi All Just wanted to know if anybody knows the answer to the following quick queries: 1) The reason I'm using VB's INET control is to download copies of Ms Access DBs on a range of web sites...
0
by: dartszeeland.tk | last post by:
Hi, i want to upload a file from my computer to a ftp..... this is the code: Inet.RemoteHost = "localhost" '(not ftp:// in front of it) Inet.RemotePort = "21" Inet.UserName = "user"...
4
by: Steen Gellett | last post by:
Hallo.....I have programmed with winsock for a while, but now I have set my eyes on Inet, but I'm totally blank........a few questions ?? Inet1.Protocol = icFTP......................I can see...
4
by: S.W. Rasmussen | last post by:
I have tried several times to get inet.execute to download a file with the icHTTP protocol without much success so far. I execute: Inet.Execute "http://www.domain/myfolder/myfile.file", "GET"...
0
by: jtmerch | last post by:
what's the best option for using the Inet control in VB.net? Is there a control that's built for the .net framework that's similar to or better than the old Inet control? I'm opening a URL and...
0
by: Pius | last post by:
Set Inet = Server.CreateObject("InetCtls.Inet.1") Inet.URL = "http://www.yahoo.com/" Inet.AccessType = icDirect Inet.Protocol = icHTTP Inet.RemotePort = 80 Inet.RequestTimeout = 60...
0
by: Rick | last post by:
Hi, I haven't been able to find a solution anywhere yet. I have a Vb6 application that has to be rewritten as a vb.net app and in the old application the inet control was set as: ...
2
by: Dan | last post by:
I developed a website that posts data to another url via the Inet object. I should mention that the posting code is wrapped in a VB 6 dll, and that dll is called from ASP. Here's the ASP code:...
3
by: Rick | last post by:
Hi, I haven't been able to find a solution anywhere yet. I have a Vb6 application that has to be rewritten as a vb.net app and in the old application the inet control was set as: ...
3
by: danny relic | last post by:
Is it possible for inet to access a webpage, fill out post data, and then do another action afterwards? How would I do that? For instance, I've got inet accessing a site where it needs to do a...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.