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
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