This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Sockets and Internet Protocols and the fly likes HTTP Headers not carried over to the server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "HTTP Headers not carried over to the server" Watch "HTTP Headers not carried over to the server" New topic
Author

HTTP Headers not carried over to the server

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9344
    
    2

I have a strange scenario wherein some of my HTTP header information is not being carried over in the request headers once it reaches the server. I'm using the Apache HTTP client libraries to make a POST request to the server:



When I tried to print the request headers on the server, here is what I see:



Where did the Content-Encoding go?


SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
 
wood burning stoves
 
subject: HTTP Headers not carried over to the server
 
Similar Threads
IE 6 and GZIP
Accept compresed requests in tomcat
Why null is return?
Apache Http Client Request Header
AJAX, JSF and security