Hi Andre', thanks for the offer, you are right, at this point is off-topic, anyway I solved (sorry for the OT) all in Apache-httpd:
on the virtual host configuration: RewriteEngine on ReWriteCond %{SERVER_PORT} !^443$ RewriteRule (.*) https://%{HTTP_HOST}/cgi-bin/redirect.pl$1 and the simple redirect.pl in the cgi-bin/ is: #!/usr/bin/perl $uri = $ENV{'REQUEST_URI'}; $context = substr $uri, 27; $url = "https://$ENV{'HTTP_HOST'}$context"; print "Content-type:text/html\r\n\r\n"; print "<html>"; print "<head>"; print "<meta http-equiv=\"refresh\" content=\"0;url=$url\" />"; print "</head>"; print "<body>"; print "</body>"; print "</html>"; 1; basically the address: http://mycompany.com/rest_of_the_url is redirect from the RewriteRule to: https://mycompany.com/cgi-bin/redirect.pl/rest_of_the_url and the redirect.pl just retrieve rest_of_the_url string and compose the new string. The html returned has: <meta http-equiv=\"refresh\" content=\"0;url=$url\" /> meta-refresh sends back to Office/Word 200, and this time Office can open correctly the browser returned in the <meta /> Thanks, Julio On 10 June 2010 11:52, André Warnier <a...@ice-sa.com> wrote: > antonio giulio wrote: >>> >>> N.B. If Office is handling the connection requests up to some step, >>> then Tomcat can't do anything about it - the problem is occuring before >>> Tomcat has any influence over the situation. >> >> Yes, Unfortunely I think you are right. A solution maybe could be >> writing a CGI for Apache and redirect there the connection and change >> HTTP-headers to communicate with Office. >> > Julio, > I also believe that this is a bit off-topic for this list. > But what you are trying to do does not seem very exotic, and I am interested > in the topic, and I think that I can help you. > So if you want to continue this discussion off-list, send me an email > directly. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org