Problem with the internet transfer control
From: Bonj (a_at_b.com)
Date: 01/25/05
- Next message: Bonj: "Problem with GetPrivateProfileString"
- Previous message: vul: "Re: TreeView Control"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 25 Jan 2005 18:02:07 -0000
Hi
I am creating a project that needs to get the title of a bunch of web pages.
e.g., I have the string "http:// intranet / webapp1 / thepage.asp"
I need to send that request off to the web server, get the html back, parse
the "<title>TheTitle</title>" out using a regex, and retrieve the "TheTitle"
as my answer.
Aswell as the title, I also need to get the page's creation date, so the
process needs to run on the web server - in order that it can access the
actual asp file. This means that my VB program that is retrieving these two
pieces of information needs to run on the web server itself. The other
reason it needs to run on the web server itself is that it is a nightly job
and a PC that gets switched off at night wouldn't be reliable enough.
I've tested the function that gets the title on my own machine, and it works
fine. This is via a hidden form with the internet transfer control ocx on
it. However, when I run it on the web server (a windows 2000 advanced
server) I get the error " class does not support automation or expected
interface ". I get this no matter whether I regsvr32 the .ocx for the
internet transfer control manually, or with the P&D W.
If I try and do createobject("inetctls.inet") from a .vbs, I get a license
error.
Has anyone got any suggestions as to what might be up with the Inet on
theweb server?
- Next message: Bonj: "Problem with GetPrivateProfileString"
- Previous message: vul: "Re: TreeView Control"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|