Hello, I'm new to this board as well as new to this subject, so I've run into some problems.

I'm trying to use wget to copy a webpage as described in this thread: http://www.daniweb.com/forums/thread159351.html. I made a .bat file with the following contents:

echo --------------- >>printer.txt
wget www.google.com >>printer.txt
date >>printer.txt
echo --------------- >>printer.txt

Google is just a random site I'm using to test it.

What gets inputed into the file is:
The current time is: 8:28:33.68
Enter the new time:

So, the problem is that the webpage is not being copied.

In case it enlightens the situation, here is what the .bat says when it is copying the webpage is:

D:\Server\htdocs>wget http://www.google.com 1>>printer.txt
--08:37:28-- http://www.google.com:80/
=> 'index.html.2'
Connecting to www.google.com:80... connected!
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]

OK -> .....
08:37:28 <5.47 MB/s> - 'index.html.2' saved [5736]

Looking at this I found that it was creating a new file for the html, index.html.2, and copying the webpage there. The problem with this is that it creates a new file every time I use it. I'm going to need to copy the page hundreds of times before reading it and I it won't be feasible to check all the files to find what I'm looking for. I tried using 'printer.html' instead of 'printer.txt' but the thing still continued to produce new files.

Is there a way around this problem? Any help would be much appreciated.

It looks like I'm getting somewhat needy right now.

I've run into another problem. While I can access google when I test my thing, I cannot access the webpage that I plan to use it for.

When the HTTP request is sent I am told that it is unauthorized.

HTTP request sent, awaiting response... 401 Unauthorized
Unknown authentication scheme.

The webpage Iam trying to access is on an internal site at my school, so that might have something to do with it. Any help would be much appreciated.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.