login about faq

I installed Apache 2.2. I can load local web pages using either or with Firefox. (The web pages I am loading are stored on my hard drive.) When I try to access those addresses with VBScript, it doesn't work. If I access the web with VBScript, it works fine, including if I use an IP address instead of a domain name (i.e. the IP address for Google).

Here's the VBScript that won't work on a locally served file, but will work on an identical file that's on the internet. ("Error" is written to the file if I use or This script writes all the URLs on a webpage to a text file.

Dim fso, outFile
Set fso = CreateObject("Scripting.FileSystemObject")
Set outFile = fso.CreateTextFile("output.txt", True)

'  The Chilkat Spider component/library is free.
set spider = CreateObject("Chilkat.Spider")

spider.Initialize ""
spider.AddUnspidered ""

success = spider.CrawlNext()

if success then

For i = 0 To spider.NumOutboundLinks - 1

end if


Here are some Apache access logs.


Apache's log, running the VBScript (
... GET /robots.txt HTTP/1.1" 404 208
... GET /index.htm HTTP/1.1" 200 365184
... GET /index.htm HTTP/1.1" 200 365184
Apache's log, loading the same from Firefox
... GET /index.htm HTTP/1.1" 200 365184
... GET /index_files/rsAItRhddGWakWTu2xcFYn5VJXiw_002.txt HTTP/1.1" 200 533363
... (additional accesses, with 200 and then different numbers)

Regarding this log, the file saved locally is a Google search results page. (For testing. I won't be using this for Google.) The VBScript will run on the live internet version, but not the copy served locally. Firefox loads the file served locally, and it looks identical to the live one.

My Firewall is turned off. Apache 2.2; Windows XP SP3

asked Mar 07 '13 at 14:58

Mike3490's gravatar image


edited Mar 07 '13 at 15:00

Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Mar 07 '13 at 14:58

Seen: 1,446 times

Last updated: Mar 07 '13 at 15:00

powered by OSQA