Slinger Web Server

I’m trying to get slinger to work on my embedded system. Actually, this
worked fine with earlier versions of QNX 6, however I am now using QNX 6.2

I start the server with the following:

export HTTPD_ROOT_DIR=/HTML
export HTTPD_ROOT_DOC=index.htm
slinger &

When I type the ip to my remote in my browser on my Windoze box, a window
pops up with the following error:

You have chosen to download a file from this location.
/ from 10.1.1[1]
What would you like to do?
Open this file from it’s current location?
Save to disk?

First, this is obviously not what’s suppose to happen. Second, even if you
choose to view the file or download, it of course is not the index page.

If I try to access it from a QNX 6.2 box, a window pops up for me to save
the file.

I did at one point try to also start the ‘ds’ utility also.

Also, I tried starting slinger on my host QNX 6.2 box and came up with the
same results.

I must be missing something… Anyone got any ideas?

TIA

WLWT <nospam@nospam.com> wrote:

When I type the ip to my remote in my browser on my Windoze box, a window
pops up with the following error:

You have chosen to download a file from this location.
/ from 10.1.1[1]
What would you like to do?
Open this file from it’s current location?
Save to disk?

That’s not an error. The problem appears to be that slinger is identifying
the file as binary as opposed to html or text. I don’t think it’s looking
at extensions, but it might. I would try the following:

export HTTPD_ROOT_DOC=index.html

If that does not work, check to make sure the file has Unix/QNX line endings?

textto -l index.htm

…should fix that.


Cheers,
Camz.