I need to re-write URL using some Http Headers. Can I use any headers?
Or only the one listed here?

http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html

Is HTTP_HOST always set? I printed headers of my servlet and this is
what I see. I used getHeaders and iterate over it:

I need to use host as in below log.
------

12:33:11,114 INFO  [STDOUT] INFO  RequestResponse - headerName accept
Value image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/xaml+xml, application/vnd.ms-xpsdocument,
application/x-ms-xbap, application/x-ms-application,
application/x-shockwave-flash, application/vnd.ms-excel,
application/vnd.ms-powerpoint, application/msword, */*
12:33:11,114 INFO  [STDOUT] INFO  RequestResponse - headerName
accept-language Value en-us
12:33:11,114 INFO  [STDOUT] INFO  RequestResponse - headerName
accept-encoding Value gzip, deflate
12:33:11,114 INFO  [STDOUT] INFO  RequestResponse - headerName
user-agent Value Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;
SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30;
.NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729;
MS-RTC LM 8; InfoPath.2)
12:33:11,114 INFO  [STDOUT] INFO  RequestResponse - headerName host
Value sdgl04l3v4679.abc.net:8080
12:33:11,114 INFO  [STDOUT] INFO  RequestResponse - headerName
connection Value Keep-Alive
12:33:11,114 INFO  [STDOUT] INFO  RequestResponse - Method GET
12:33:11,114 INFO  [STDOUT] INFO  RequestResponse - Length of byte array null
12:33:11,567 INFO  [STDOUT] DEBUG wire - >> "GET / HTTP/1.1[\r][\n]"
12:33:11,567 INFO  [STDOUT] DEBUG wire - >> "connection: Keep-Alive[\r][\n]"
12:33:11,567 INFO  [STDOUT] DEBUG wire - >> "host:
sdgl04l3v4679.abc.net:8080[\r][\n]"
12:33:11,567 INFO  [STDOUT] DEBUG wire - >> "accept-language: en-us[\r][\n]"
12:33:11,567 INFO  [STDOUT] DEBUG wire - >> "accept: image/gif,
image/x-xbitmap, image/jpeg, image/pjpeg, application/xaml+xml,
application/vnd.ms-xpsdocument, application/x-ms-xbap,
application/x-ms-application, application/x-shockwave-flash,
application/vnd.ms-excel, application/vnd.ms-powerpoint,
application/msword, */*[\r][\n]"
12:33:11,567 INFO  [STDOUT] DEBUG wire - >> "user-agent: Mozilla/4.0
(compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET
CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR
3.0.4506.2152; .NET CLR 3.5.30729; MS-RTC LM 8; InfoPath.2)[\r][\n]"
12:33:11,567 INFO  [STDOUT] DEBUG wire - >> "accept-encoding: gzip,
deflate[\r][\n]"
12:33:11,567 INFO  [STDOUT] DEBUG wire - >> "[\r][\n]"

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to