EHS 1.3.1

G

Greg

Hi,

I'm actually using EHS 1.3.1 (compiled under Cygwin - which seems to
work perfectly). I'm having some troubles regarding the usage of EHS.

- How do you handle "images" with EHS (or other content types than
TEXT). I've tryed setting the content-type (in my HandleRequest
method) with
(ipoHttpResponse->oResponseHeaders.insert(pair<string,string>("content-type","image/jpeg"));
and then I use
ipoHttpResponse->SetBody ( psBody, strlen ( psBody ) );
which is rendering TEXT. No picture is displayed : just a part of
the ASCII content of the picture does. Is that the good way to set the
content type ? Is there another way to write to the response than
using "SetBody" ?

- How to you handle sub-directories in the URI path : my HandleRequest
does not seems to catch the request when I specify a path in the URI :
e.g. : http://localhost/abc.htm works whereas
http://localhost/def/abc.htm does not work : I get an "error 404"!
Where are those directories (real directories) and how can I catch
them with a method (HandleRequest ?).

Thank you very much in advance!

Gregory GUY.
MetaMind Solutions GmbH.
http://www.metamindsolutions.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,201
Messages
2,571,049
Members
47,654
Latest member
LannySinge

Latest Threads

Top