By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,897 Members | 1,955 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,897 IT Pros & Developers. It's quick & easy.

EHS 1.3.1

P: n/a

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>("cont ent-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.
Jul 23 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.