Automated download of the latest TCMD build

Oct 17, 2008
19
0
Coral Springs, FL
Hello,

I have an automated script that copies JP Software's download web page to a file, parses it and then decides whether there is a new build available for download or not.

The line of code that performs the copy is this:
Copy /q "http://jpsoft.com/all-downloads/downloads.html" %TCBuildFile%

This always worked fine, although sometimes I had to change the parser code to adjust to changes in the web page format.

Recently the command above is failing with the following error message:

TCC: C:\Batch\TCBuild.btm [94] HTTP protocol error. 403 Forbidden. "http://jpsoft.com/all-downloads/downloads.html"

I googled HTTP error 403 and learned there is some security feature on the server page that is preventing me from copying the page, although I can see easily the page source using browser tools on Firefox or IE.

Has something changed in the website security or am I doing something wrong?

This is absolutely no big deal, but I would like to understand the reasons why the script is failing. I know I can also check for updates using the TCMD window, but this requires manual intervention.

Thanks in advance,

Renato
 
Jan 19, 2011
614
15
Norman, OK
If you use the Google Chrome browser, there is an AWESOME extension called "Page Monitor" by Max Shawabkeh. I use it to track updates on over 25 pages. Easy to use and very configurable.
 
Jan 19, 2011
614
15
Norman, OK
I've only tried it a little, but the Update Scanner by sneakypete81 appears to be an addon for Firefox comparable to Page Monitor.
 
May 29, 2008
572
4
Groton, CT
I was able to download the web page to a file using LYNX, with a command line
Code:
lynx -dump http://jpsoft.com/all-downloads/downloads.html > x.tmp

The result is very parseable.
 

Similar threads