Connect ME -S and HTTP Authorization: Basic

When I access the /UE/rci URI on the ME, I can use the basic HTTP authorization header, like the following for custom:custom

Authorization: Basic Y3VzdG9tOmN1c3RvbQ==

and the ME respons with “200 OK” status (if the username and password was valid).

However when I try access other objects on the web server, for example /Forms/customization_file_upload_1, this correct authentication is rejected with “401 Unauthorized” status.

Also connectprog.exe first accesses /UE/rci succesfully to test the connection and then fails when trying to access /Forms/customization_file_upload_1.

–> Connectprog.exe cannot do any upload operation either. What is wrong?

Example:

>connectprog.exe /info /destip=172.25.1
3.52 /username=root /password=dbps

Digi Connect Programmer
Version 1.6.25.0
Copyright 2003-2009 Digi International Inc.

Connect to device: SUCCESS
Product             : Digi Connect ME
Model               : Digi Connect ME
MAC                 : 00:40:9D:31:38:D9
Firmware Version    : 2.8.2 (Version 82001116_K 09/16/2008)
Boot Version        : 0.0.0.1 (release_82000866_C)
Post Version        : 1.1.3 (release_82000867_H)
CPU Utilization     : 16%
Uptime              : 44 minutes, 36 seconds
Total Memory        : 8388608
Used Memory         : 4192764
Free Memory         : 4195844

>connectprog.exe /upload /destip=172.25
.13.52 /username=custom /password=custom /custom=config.ini

Digi Connect Programmer
Version 1.6.25.0
Copyright 2003-2009 Digi International Inc.

Connect to device: SUCCESS
Upload file config.ini in progress...
    Upload result: FAILED
ERROR: Failed to upload customization file to device:

>

(Wireshark shows that connectprog.exe receives 401 response when it tries to upload the file.)

There’s a bug in the K (F6 works) firmware that doesn’t allow you to use Connect Programmer with the module. It has something to do with an authentication check on that page erroneously failing.

Thanks for your comment, charliek. Unfortunately I already expected that.

Because of this, we have been doing the file uploads to Digi Connect ME/Wi-ME modules using Internet Explorer controlled via COM automation. Luckily that hack works. Connectprog.exe is used only to discover the module’s IP address, which is then used with IE.