Only 48 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Sending Compressed Response  RSS feed

 
Kalai Selvan
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I am trying to create an small webserver. Which sends the reponse in the compressed format(only if the browser supports). And following is the code which does this.



The above code does the following thing.....
1. Checks whether the browser supports the compressed format.
2. Then in the sendResponse method i m actually writting the response to socket as... Header part followed by a blank line and then the compressed body.


And the problem is im getting only a blank html page in the browser and not the requested file.

Please help me....

Thanks in advance.
Kalai Selvan T.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65824
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not really a JSP question so I'm going to move this along to the Sockets and Internet Protocols forumm which seems to be the best match.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!