Questions tagged [content-encoding]

Use this tag for questions regarding specifying content encoding on HTTP requests.

A concept in HTTP/1.1 content negotiation to indicate encryption or compression of an HTTP response (such as gzip support).

The following headers are typically used to determine the content encoding of a response. However, servers are free to use other aspects they choose.

  • Accept
  • Accept-Charset
  • Accept-Encoding
  • Accept-Language
  • User-Agent

Typical values of the Transfer-Encoding header: gzip, compress, deflate, identity, *

155 questions
1
vote
1 answer

Receiving gzip Content-Encoding with dotNetRDF

How do I tell dotNetRDF to request and accept data from a remote triplestore where the response is encoded using gzip? Looking at the source code for the LoadGraph method of SparqlHttpProtocolConnector, it doesn't appear to me to have a mechanism…
MWood
  • 68
  • 10
1
vote
3 answers

How to decode response with zlib in fiddler

I know there is Response body is encoded. Click to decode but it dosen't work. The response I get is encoded by zlib not gzip and there is no Content-Encoding: gzip in response header. Now I can save the response body to a file and then decode it by…
PaleNeutron
  • 2,543
  • 4
  • 25
  • 43
1
vote
1 answer

EclipseLink and database encoding

I am a developer for a global application, which was deployed in a few countries whose languages were not a problem for us. But now, we're going to Slovakia, and we're having a bit of trouble with EclipseLink. We've setup a small web application to…
javabeats
  • 1,082
  • 3
  • 12
  • 26
1
vote
0 answers

Why is Owin sometimes dropping Content-Encoding?

[Edit] **The problem seems to be something on our machines that is intercepting HTML sent via port 8888 -- changing the port number appears to fix things. What is running on port 8888 that might do this is still a mystery. ** I have the oddest bug…
Rafe
  • 5,237
  • 3
  • 23
  • 26
1
vote
1 answer

setting 'Content-Encoding' to gzip or deflate causes java.net.SocketException: Connection reset

I have developed a simple Java Servlet in order to retrieve a medical file(DICOM) from a server: public class DicomRetrieveServlet extends HttpServlet { private static Logger log = Logger.getLogger(DicomRetrieveServlet.class); public void…
Kayvan Tehrani
  • 3,070
  • 2
  • 32
  • 46
1
vote
0 answers

unable to set content-encoding to gzip in tomcat Server

I'm having issue with response header in webpage...My server.xml is having below details,but not getting "content-encoding" in "Response-header"
kavie
  • 2,154
  • 4
  • 28
  • 53
1
vote
2 answers

Need to add a header in response header with the key and value as "Content-Encoding" as "gzip"

I am trying to run the sample application with the customized header but when i try to run this application, it throws the error as "Content Encoding Error". I would like to add this custom header on my application to use the grunt-gzip compression.…
1
vote
1 answer

Why Transfer-Encoding:Chunked sent instead of Content-Encoding:gzip for some of clients?

I confused. I have two laptops that connect to internet via same modem device. For web servers that enabled gzip in them for example microsoft.com, One of my Systems(64-bit) get response header with Transfer-Encoding:chunked. The other get response…
Mohammad Eslami
  • 536
  • 1
  • 6
  • 17
1
vote
1 answer

Scalatra, Handling POST request with Gzip encoding

I have a Scalatra API with a POST method, which is invoked by an external API that sends gzip encoded messages. But I am unable to read the body of the post request, and when I try to read the body of POST or try to decompress it, I get the…
armulator
  • 1,269
  • 2
  • 12
  • 16
1
vote
1 answer

Server returning multiple content-encoding values breaks SVG file in Chrome

With a Rails application setup that uploads assets to Amazon S3 using asset-sync, then uses both CloudFront and CloudFlare as CDN on top of Amazon, I seem to get an error in Chrome and Safari when accessing a .svg file: This page contains the…
Cristian
  • 5,877
  • 6
  • 46
  • 55
1
vote
0 answers

Unable to get gziped InputSTream on Android device using DefaultHttpClient, HttpPost JSON

I have JSON service exposed on http and https sites (same IIS server). Using this code, when calling http url I'm getting gziped response, but calling https response is not gziped. HTTPS is retutning gziped content and proper headers (in this case…
Avicena00
  • 355
  • 1
  • 5
  • 24
1
vote
0 answers

How can I check the content transfer encoding of incoming emails using Zend framework

How can I detect the content-transfer-encoding of emails in the inbox using Zend framework. I need to check to make sure whether a message is qyoted printable content so I can run a decode upon it somehow. The encoding doesn't appear in the message…
Ali
  • 7,353
  • 20
  • 103
  • 161
1
vote
4 answers

Encountering encoding issues on linux box, not Windows

I'm running into an encoding issue that has stumped me for a few weeks and nothing seems to work. I have a website that works fine on my local machine, but when I push the jsp files to a Linux box for review, characters that previously rendered fine…
Allen
  • 11
  • 2
1
vote
3 answers

Why doesn't apache java http library handle sites with Content-Encoding: none?

I'm trying to send a GET via a proxy and some sites have the header: Content-Encoding: none, which causes Apache to throw an exception. I'm wondering if this is the intended behavior, and whether I should treat this as a bug or not: Caused by:…
Popcorn
  • 5,188
  • 12
  • 54
  • 87
1
vote
0 answers

Apache type-map only serving uncompressed or only compressed file?

I want to serve a large (binary but compressible) file using either gzip content encoding or no content encoding (as a fall-back). I thought it should be possible to do this using a type-map. I thus set AddEncoding x-gzip .gzc and AddHandler…
Jasper
  • 151
  • 1
  • 4