Question:
I need to collect informtion about an Intermec printer that has a web based interface, so I use a QuickGetStr call to retrieve the config page. I use VS2008-2010 with linked c++ libraries. This work since 2010, and with 9.4.0. Now that I've upgraded to latest 9.5 some call to get pages return true, but the string is empty. Seems related to web pages not named html ( ie. /rom/home.htmf - yes they use F instead L ).
Using put_VerboseLogging and put_SessionLogFilename what i get (bot W2008R2 64 and XP 32 and W7 64) I've got what you see below, the two calls are maden back to back from the same procedure, the first to htmf fails, the second to html succeded, both works if I restore 9.4.0. Of course also in explorer both are displayed as expected.
TIA
---- Sending ---- GET /rom/home.htmf HTTP/1.1 Accept: / Connection: Keep-Alive User-Agent: Chilkat/1.0.0 (+http://www.chilkatsoft.com/ChilkatHttpUA.asp) Accept-Charset: ISO-8859-1,utf-8;q="0.7,*";q="0.7" Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip Host: 10.0.0.141
---- Received ---- HTTP/1.0 200 Ok Server: 10.0.0.141 Date: Wed, 31 Dec 1969 23:59:59 GMT Pragma: no-cache Cache-Control: no-cache; private; Expires: 0 Content-Type: text/html; charset=iso-8859-1 Connection: close
---- Sending ---- GET /rom/secure/view.html HTTP/1.1 Accept: / Connection: Keep-Alive User-Agent: Chilkat/1.0.0 (+http://www.chilkatsoft.com/ChilkatHttpUA.asp) Accept-Charset: ISO-8859-1,utf-8;q="0.7,*";q="0.7" Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip Host: 10.0.0.141
---- Received ---- HTTP/1.0 200 Ok Server: 10.0.0.141 Date: Wed, 31 Dec 1969 23:59:59 GMT Pragma: no-cache Cache-Control: no-cache; private; Expires: 0 Content-Type: text/html; charset=iso-8859-1 Connection: close
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Config view</title></head> <body bgcolor="#ffffff">
CommunicationBaud Rate : | 115200 | ||
Data Bits : | 8 | ||
Parity : | NONE | ||
Stop Bits : | 1 | ||
RTS/CTS : | ENABLE | ||
ENQ/ACK : | DISABLE | ||
XON/XOFF Data To Host : | DISABLE | ||
XON/XOFF Data From Host : | DISABLE | ||
New Line : | CR/LF | ||
Receive Buffer : | 5000 | ||
Transmit Buffer : | 500 |
Network Communication, net1:
Status : Available |
New Line : | CR/LF |
USB Keyboard Layout:
Interface : | US |
XSTART: | 8 |
WIDTH: | 640 |
LENGTH: | 1800 |
MEDIA TYPE: | TICKET (w MARK) |
PAPER TYPE: | DIRECT THERMAL |
LABEL CONSTANT: | 85 |
LABEL FACTOR: | 40 |
CONTRAST: | +0% |
TESTFEED MODE: | FAST |
LEN (SLOW MODE): | 0 |
HEAD RESOLUTION: | 8.00 dots/mm (203 dpi) |
STARTADJ: | -100 |
STOPADJ: | 0 |
HEAD RESIST: | 625 |
PRINT SPEED: | 200 |
CLIP DEFAULT: | OFF |
Testfeed: | 43 63 12 10 |
Command Language: | Fingerprint |
Fingerprint Application: | |
Standard I/O: | auto |
Alerts<html><head></head><body bgcolor="#ffffff">
Alert | Setting | Delay repeat | Delay unit | Message |
---|---|---|---|---|
Label Not Taken | disabled | 1 | occurrences | Label Not Taken |
Cutter Error | enabled | 1 | occurrences | Error - Cutter Error |
Head Lifted | enabled | 1 | occurrences | Error - Head Lifted |
Out of Paper | enabled | 1 | occurrences | Error - Out of Paper |
Pause Mode | disabled | 1 | occurrences | Pause Mode |
Setup Mode | disabled | 1 | occurrences | Setup Mode |
Error Condition | disabled | 1 | occurrences | Warning - Error Condition |
Application Break | disabled | 1 | occurrences | Error - Application Break |
Print Job Complete | disabled | 1 | occurrences | Print Job Complete |
Odometer Count1 | di |
Below (I've forgotten before) the same firt call as above returning data with previous 9.4 version...
---- Sending ---- GET /rom/home.htmf HTTP/1.1 Accept: / Connection: Keep-Alive User-Agent: Chilkat/1.0.0 (+http://www.chilkatsoft.com/ChilkatHttpUA.asp) Accept-Charset: ISO-8859-1,utf-8;q="0.7,*";q="0.7" Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip Host: 10.0.0.141
---- Received ---- HTTP/1.0 200 Ok Server: 10.0.0.141 Date: Wed, 31 Dec 1969 23:59:59 GMT Pragma: no-cache Cache-Control: no-cache; private; Expires: 0 Content-Type: text/html; charset=iso-8859-1 Connection: close
<html><head></head> <body bgcolor="#ffffff"
<basefont size="2" face="Arial, Helvetica, sans serif">
EasyCoder PF4i
Name (WINS): INTERMEC319358 Firmware Version: MCS 1986, 18-Apr-11 13:21:12 Active Command Set: Fingerprint 8.79.1
MAC Address: 00:10:40:31:93:58 IP Address: 10.0.0.141 Network Type: Ethernet IPv6 Addresses: FE80::210:40FF:FE31:9358/64
Image buffer: label.png </body></html>
RtW™: Application break
with version v9.5.0.36 • 28-Apr-2014 the problem is solved.
I've found another different result in 9.5.0.x, but in another section of the library: since I need to find printer status I use CkHtmlToText toText( strReturned) to get content.
With version 9.4 RtW™: was returned as RtW™:, now as RtWÖ: ( in italian windows 1252 codepage 153 is translated as Ö )
Hope this help.