Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8501521
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T01:14:06+00:00 2026-06-11T01:14:06+00:00

This encoding header tells a web server to send gzip content if available. ‘accept-encoding’:

  • 0

This encoding header tells a web server to send gzip content if available.

'accept-encoding': 'gzip,deflate,sdch',

How can I instruct the web server to send plain text and not gzip the content?
I am aware that the web server can simply ignore this request if it wanted to.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T01:14:08+00:00Added an answer on June 11, 2026 at 1:14 am

    Leaving the encoding out of accept-encoding will disallow that encoding (ie gzip).

    If you want to explicitly set it as disallowed, you can set a qvalue of 0.

    'accept-encoding': 'gzip;q=0,deflate,sdch'
    

    You can read more under accept-encoding in RFC2616, but in short if the server can’t find an acceptable encoding among the ones listed (identity being a special case, see the link), it should send a 406 (Not Acceptable) response and not reply to your request with any other encoding.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

mod_deflate always sends gzip data when the request header Accept-Encoding is gip, deflate .
I have an mp3 encoding server running on Ubuntu (natty). This has been working
In short: For this code: Encoding.ASCII.GetBytes(‚) I want the output to be 130, but
Suppose I have this code: String encoding = UTF-16; String text = [Hello StackOverflow];
This is a general question about character encoding when using MD5 libraries in various
Inspired by the encoding scheme of the answer to this question , I implemented
What is wrong with this statement? return Encoding.ASCII.GetString(memoryStream.GetBuffer(), 0, memoryStream.Length) I know about the
I need to detect character encoding in HTTP responses. To do this I look
Please help with search string encoding. Simple request like this: https://graph.facebook.com/search?q=max&type=user works pretty good,
To preface this, the most I know about text encoding I learned from Joel

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.