This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Servlets and the fly likes setHeader() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "setHeader()" Watch "setHeader()" New topic
Author

setHeader()

Bob Moranski
Ranch Hand

Joined: Nov 22, 2000
Posts: 177
Hi, I have a few questions about setHeader(). What is the difference between response.setHeader("Content-Encoding", "gzip") and response.setHeader("Content-Encoding", "x-gzip")?
What does response.setHeader("Vary", "Accept-Encoding) do?
Thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: setHeader()
 
Similar Threads
Arabic characters issue in java mail
Performance Issue wth writing "text/javascript" content into HttpServletResponse
Content-Encoding
Control of content encoding
How to change the HTTP method (GET or POST)