Hi,
I'm working with a CR800 and trying to enable the webpage view from the Internet, without success. It's the first time I've played around with this feature so hopefully I've just missed something.
The problem I have is that when I type in the IP address of the logger into a web browser the web page displays "Unrecognized request" with a title "No Table or File found or Site Secured".
Below you can see this is indeed what the logger is generating as I sniffed the RS232 port:
------------------------------
R 12:13:31.76 ~..!E..v..@.t...:...{......P{o}^..&-.P.......GET / HTTP/1.1
R 12:13:31.76 Accept: image/gi
R 12:13:31.77 f, image/jpeg, image/pjpeg, image/pjpeg, application/vnd.ms-excel, application/v
R 12:13:31.77 nd.ms-powerpoint, application/m
R 12:13:31.77 sword, application/x-shockwave-flash, application/xaml+xml, application/x-ms-xba
R 12:13:31.77 p, application/x-ms-application, ap
R 12:13:31.77 plication/vnd.ms-xpsdocument, */*
R 12:13:31.77 Accept-Language: en-au
R 12:13:31.77 User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT
R 12:13:31.80 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET4.0C; .NET4.0E; InfoPath.1; .NET CLR 2
R 12:13:31.80 .0.50727; .NET CLR 3.0.450
R 12:13:31.80 6.2152; .NET CLR 3.5.30729)
R 12:13:31.80 Accept-Encoding: gzip, deflate
R 12:13:31.80 Host: 123.209.152.197
R 12:13:31.80 Connection: Keep-Alive
R 12:13:31.80
R 12:13:31.80 ".~
T 12:13:31.80 ~!E..(....@.+.{...:....P...&-.{o..P. .K...9.~
T 12:13:33.23 ~!E..V...@.).{...:....P...&-.{o..P. .9...HTTP/1.1 404 Not Found
T 12:13:33.23 Server: CR800.Std.22
T 12:13:33.23 Date: Sun, 8 Apr 2012 12:13:33
T 12:13:33.23 Last-Modified: Sun, 8 Apr 2012 12:13:33
T 12:13:33.23 ETag: 1444051637
T 12:13:33.23 Accept-Ranges: none
T 12:13:33.23 Transfer-Encoding: chunked
T 12:13:33.23 Content-Type: text/html; charset=ISO-8859-1
T 12:13:33.23
T 12:13:33.23 139
T 12:13:33.23 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
T 12:13:33.23 "http://www.w3.org/TR/html4/loose.dtd">
T 12:13:33.23 <HTML><HEAD><TITLE>No Table or File found or Site Secured</TITLE><invalidTag http-equi
T 12:13:33.23 v="Pragma" content="no-cache"><invalidTag http-equiv="expires" content="0"></HEAD>
T 12:13:33.23 <BODY><h1>Unrecognized request</h1>
T 12:13:33.23 </BODY></HTML>
T 12:13:33.23 0
T 12:13:33.23
T 12:13:33.23 ..~
R 12:13:33.75 ~..!E..(..@.t..!:...{......P{o...&/.P...i.....~
------------------------------
I've tried using the HTTP example program shown in the CR800 manual and also a program not using WebPageBegin() so that the in-built default web is used, however I get the same "error" web page every time.
Here are a few key points to my setup:
- CR800 is directly connected to the Internet via an RS232 modem using PPP (Modem uses a public IP address so no gateways are involved)
- The computers trying to view the web page from the CR800 are not behind any type of proxy server and have been tested with IE, FireFox & Chrome
- Telnet, FTP & Loggernet all work correctly when connecting to the logger over the internet
- HTTP is enabled in "Net Services"
- CR800 Firmware version is OS22
Could anyone suggest why the default or custom webpages aren't being generated?
Thanks CJ
* Last updated by: CJ on 4/8/2012 @ 6:30 AM *
After more digging around I eventually found the problem was directly caused by the security codes (Security level 3 must be disabled).
The reason the example program did not work is because the security codes from the previous program were still intact.
The remnant security code must be manually disabled in Dev Config or by adding code to the example program to disable security level 3.
CJ,
The security code could have been passed in the URL (security=). Better yet, a .csipasswd file could be loaded which will then take over access control of http security.