IIS Isn't Sending Gzipped Data To IE?

Jan 24, 2011

Using Internet Explorer 8, Firefox 3.6, Chrome 8 and IIS 7.5 on a Win7 x64 box.I'm serving up a file using an IHttpHandler (.NET 4).

According to Fiddler, my IIS request from IE8 says it accepts gzip, but it isn't returned:
(note that loc.portal.com is actually 127.0.0.1)
GET http://loc.portal.com/AdminCenter/FileHandler.ashx?ID=115 HTTP/1.1
Accept: application/x-ms-application, image/jpeg, application/xaml+xml, image/gif, image/pjpeg, application/x-ms-xbap, application/x-shockwave-flash, */*
Accept-Language: en-US
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; MDDR; .NET4.0C; .NET4.0E; MS-RTC LM 8; InfoPath.3)
Accept-Encoding: gzip, deflate
Connection: Keep-Alive
Host: loc.portal.com
Cookie: LoginName=; ASP.NET_SessionId=d5qiw5nubkjd2r00gnebg3ar; .ASPXAUTH=BAEA blah blah

Header returned from IIS to IE:

HTTP/1.1 200 OK
Cache-Control: private
Transfer-Encoding: chunked
[code]...

Notice it's not gzipped.With Firefox, however, the request looks like this:

GET http://loc.portal.com/AdminCenter/FileHandler.ashx?ID=115 HTTP/1.1
Host: loc.portal.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13
[code]....

Chrome looks similar to Firefox. It asks for gzip and gzip is returned. I can see by the content size displayed in Fiddler that the body is, in fact, gzipped for Chrome and Firefox but not IE.

I have "Enable dynamic content compression" (as well as static content compression) set in IIS. My IHttpHandler isn't doing anything special with compression and it's not running different code for different browsers. I searched the source for my project and I don't see any mention of "gzip" at all so I don't see how I could be accidentally mucking with it.

How can I figure out why IIS isn't sending gzipped data to IE?

View 1 Replies


Similar Messages:

C# - Twitterizer 2.2 Sending / Stuck When It Gets To Sending The Tweet?

Jul 22, 2010

I am working on sending twitter updates from my asp.net website. I have the authorization down but I am stuck when it gets to sending the tweet here is my code behind:

protected void btnAuth_Click(object sender, EventArgs e)
{
// add these to web.config or your preferred location
var consumerKey = ConfigurationManager.AppSettings["consumerKey"];
var consumerSecret = ConfigurationManager.AppSettings["consumerSecret"];
//If User is not valid user
if (Request.QueryString["oauth_token"] == null)
{
//Step 1: Get Request Token
OAuthTokenResponse RequestToken = OAuthUtility.GetRequestToken(consumerKey,consumerSecret);
//Step 2: Redirect User to Requested Token
Response.Redirect("http://twitter.com/oauth/authorize?oauth_token="+ RequestToken.Token);
}
else
{
//For Valid User
string Oauth_Token = Request.QueryString["oauth_token"].ToString();
var accessToken = OAuthUtility.GetAccessToken(consumerKey, consumerSecret, Oauth_Token, txtPIN.Text.Trim());
lblMessage.Text = "<b>Hello " + accessToken.ScreenName + ", Welcome to my Twitter App<b>";
lblMessage.Text += "<br/> Token: " + accessToken.Token;
lblMessage.Text += "<br/> TokenSecret: " + accessToken.TokenSecret;
lblMessage.Text += "<br/> UserId: " + accessToken.UserId;
lblMessage.Text += "<br/> VerificationString: " + accessToken.VerificationString;
}
}
protected void btnTweet_Click(object sender, EventArgs e)
{
// add these to web.config or your preferred location
var consumerKey = ConfigurationManager.AppSettings["consumerKey"];
var consumerSecret = ConfigurationManager.AppSettings["consumerSecret"];
OAuthTokens accessToken = new OAuthTokens();
accessToken.AccessToken = "xxxxxxxxxxxxxxxxxxxxxxxxxxxx";
accessToken.AccessTokenSecret = "xxxxxxxxxxxxxxxxxxxx";
accessToken.ConsumerKey = consumerKey;
accessToken.ConsumerSecret = consumerSecret;
TwitterStatus TweetStatus = new TwitterStatus();
TweetStatus.Update(accessTokens, txtTweet.Text);
}

I dont know how to get the AccessToken & AccessTokenSecret.

View 2 Replies

Sending Data From Web App To A Vb6 App?

Oct 28, 2010

Sending data from Asp.net web app TO a vb6 app...possible?

I need for a user to login to my web app and send some simple data to an existing VB6 legacy app that is installed on the user's machine. Is there anyway of doing this without rewriting the client app in .Net?

View 4 Replies

Sending SMS And Getting Data By SMS

Feb 15, 2011

I have web site that users can register own self and sharing own personality info with my website,I wanna send one SMS to each user after fill all fields and the content of sms should be the fields info.In other side user could send sms and get own info on our DB by SMS.

View 2 Replies

Forms Data Controls :: Listview With Custom Button And Sending Data?

Nov 24, 2010

So my previous post I made a listview with filtering on dropdownlist from my search part.Now I want that the customer can click on a button from a listitem, and then redirect to another page with all the data from the selected item.

View 3 Replies

Forms Data Controls :: Error When Sending Gridview Data To Spreadsheet / Index Was Out Of Range

Jun 29, 2010

I have used to code below successfully to export a gridview to an excel spreadsheet, however when i use it for a gridview with data from a different table i receive the following error:

Index was out of range. Must be non-negative and less than the size of the collection.

Parameter name: index

The thing is it works locally fine but when i upload to my shared server i receive the error above?

how to resolve/troubleshoot this?

aspx file:

[Code]....

code behind button click:

[Code]....

View 7 Replies

Sending Data From Wordpress?

Dec 19, 2010

I'm working on a Press Release website that currently has an existing distribution platform built on ASP.NET - the site that I have built is utilizes Wordpress Multi-site and BuddyPress, and I need to share information between Wordpress & the existing ASP.NET CMS. The information that needs to be shared between both platforms is 1) Press release information (which is a custom post type in Wordpress) and 2) The login information. Is there a way to have ASP.NET get the information from the Wordpress MYSQL database? Or is the best way to write a plugin for wordpress that will send information to the ASP.NET each time a new press release is written, and each time a new user account is created. I can go either way - having ASP.NET grab the info, or Wordpress send the info out.

View 1 Replies

MVC :: Sending Data To MasterPage?

Dec 1, 2010

My navigation links on the master pages includes a link called "Search (X)" that links to a search page. I want to fill the X with the current number of new transactions. This requires that I access a repository etcWhat do you feel the best solution is? I may need to include other 'dynamic' data on the master page in the future as well, but it will not all be related to each other.

- A MasterViewModel
- Use RenderAction() methods and call functions in appropriate controllers
- TempData or ViewData (probably with extensions)
- HtmlHelper extensions
- Something Else?

View 2 Replies

Sending Form Data To Web Service

Oct 13, 2010

i have some web service in outsource server (not on the form server) and i need to send to this web service few text boxes fill by the user (text only - no files) i need to send the data + the number 1 + some guid string (that not changing - the same guid always) is anyone have an idea how im doing that? ( all the data need to be sending to asmx file.

View 5 Replies

Web Forms :: Sending Data Between Iframes?

Feb 8, 2011

I've got a situation where there is a page with 3 iframes. The first frame contains a TreeView, the second a GridView which is dependent on the selected node of the Treeview in frame 1 and the third frame contains labels with information also dependent on the TreeView in the first frame.

My problem is, how do I pass information from the first frame to the others? Can I access information about the selected node in JavaScript, pass it to another frame and then do a postback with the info as an argument?

View 3 Replies

Web Forms :: Sending Data From Usercontrol?

Jan 5, 2011

I have Dynamic User control that has 2 buttons.one of them is btnOk and the other is btnCancel.in my usercontrol I want to add some information and these information is send to an xml file.the problem is when I click on Ok button no data is sent to xml file.here is my code:

[Code]....

View 20 Replies

Sending Data From Script To .cs Page?

Sep 13, 2010

am getting values from .cs to script but i want to send data from script to .cs pagei have tried this,but it is not working.

<script type="text/javascript">
$(document).ready(function() {
$("hfServerValue").val("From ClientSide!");

[code]...

View 2 Replies

Sending Data On A Page By E-mail?

Apr 19, 2010

[Code]....

View 2 Replies

Sending VB Data To Another Page In Javascript?

May 28, 2010

I'm creating a search form using an asp:button control with the urlpostback set to a results page. The problem is, the asp:button uses Visual Basic and the search results from Google require Javascript.

Is there a way to take the data from an asp: textbox in VB and then send it to another page that uses Javascript and use the data?

View 3 Replies

Push - Sending Data Between Client With 4.0?

Feb 21, 2011

I'm transforming lotus note application to ASP.NET.In lotus note, we can pass the application(data) from staff to his/her manager for approval.The staff can also check status of his/her data whether the manager is opening it, approved it or not.This process can be done in real time. I mean on the staff screen he/she will see status is changing from data sent --> manager is opening --> manager accepted or manager rejected it.In the same time, if other staffs try to track this application(data) they will see the same screen with the first staff.ow, in asp.net, i'm thinking of sending data from staff to manager directly. I don't want manager's web browser need to do polling for every xx millisecond. I'm not quite too sure it can be done or not in asp.net because i'm not the WEB guy.After doing a research for a while, i found that comet may help me on that but it seems pretty hard. And I don't know it is suitable for my problem or not or someone may guide me a better idea on this.

View 1 Replies

Web Forms :: Getting Data And Sending It In A CSV File To User

Oct 21, 2010

I'm creating an ASP.NET application that needs to get data from database (time consuming) and show some indication (e.g. gif animation) that the application is doing something. After that the data should be send to user that the user can save or open the CSV file.

I'm able to do this with two button click's. One for getting the data from the database in codebehind and using javascript to show the gif animation for user in the meanwhile. Second to use the esponse.write(myData) and response.end() to send the data for user to save in CSV file.

The problem is that I need to do this with one button click. If I combine the code to one button click handler the data is sent correctly but the gif animation is not hidden because the page is not updated. How to do this correctly with one button click?

View 5 Replies

Sending Data To Tally Using C# / ServerHTTP Not Found

Jun 14, 2010

I want to send data to Tally, I realised that it can only be done by converting the data to an xml format. In a VB6 application I found the sending data using the code

ServerHTTP.Open "POST", "http://localhost:" + PortNumber
ServerHTTP.send xmlstc

how can I use the code in C#.net

In .Net ServerHTTP not found

View 4 Replies

Web Forms :: Sending Data To Php - Line Stops?

Oct 22, 2010

I have sample code for sending data from asp to PHP, but something goes wrong. Here is the code

[Code]....

but in this line stops.

[Code]....

View 4 Replies

Mass Sending Data To Stored Procedure

Jul 13, 2010

I'm using Microsoft .NET Framework 3.5 to create a web service with VB.NET. I'm using a Stored Procedure in SQL Server 2008 so that SQL can insert all the data that I'm passing. The problem is that in one of the servicse I need to pass around 10,000 records and it's not very efficient to run the stored procedure 10,000 times.

I read that there is a way in which you can pass an XML file with all data to the Stored Procedure but I'm not sure if that's the most efficient way. Also I couldn't make the code work, I don't know if I have to pass the XML as a String. I'm asking for help with a method in which I can pass a lots of records to the stored procedure once and then the same instance of the Stored procedure can process all the records in a loop

View 5 Replies

Sending And Receiving Data Through SOAP Web Service In .Net?

Jan 20, 2010

I am working on a client - server application and in which I used to send and receive data through SOAP web service.

Now after sometimes I have heard from someone that I might lost some data while this process on soap service created in ASP.net. So now I have decided to send and receive data through batches like first I will send List of 50 objects and then next 50 and so on...

Now I am new to web services and all.

So my question is "Is it true that we can lost some data sometimes while transferring it through SOAP web service?"

View 6 Replies

Posting Data As Httpwebrequest And Sending It As A Stream?

Feb 12, 2010

I am running the code below to authorize payments but I wanted to know how secure is it to submit sensitive data like that, do I have to worry about any issues going on or no?

[Code]....

View 3 Replies

JQuery :: Sending Data To The Client ( Advice )?

Nov 2, 2010

Currently, I am exploring options for sending data to the client. What I am hoping for is suggestions, or a pros and cons feedback.

What I am wanting to do is query the database then send this data to a web service ( or maybe wcf ). Once there, jquery ( or another JS library ) will utilize this data to fill a grid/tree/form depending. This all seems very very basic, but what concerns me is the amount of data that can be sent. I have seen some grids that have 16K records...and what worries me is that would be WAY too much data to send.

I was just wondering how these things are handled. My current thoughts are to do a 'onDemand' loading, but my inexperience has me second guessing. Also, I know this isn't directly related to jquery, but I notice there are a lot more examples with wcf rather than webmethod/web services.Is wcf better for these types of things?

View 5 Replies

Server Closed The Connection Without Sending Any Data

Jul 2, 2012

I have a web application which runs perfectly in my local machine. But the same when hosted in server, for some pages (which gets large amounts of data) gives me:-

Error 324 (net::ERR_EMPTY_RESPONSE): The server closed the connection without sending any data.-- in chrome
Server not found-- in firefox

and Internet Explorer cannot display the webpage-- in IE

I went through lot of other forums and some were suggesting to put this is web.config file

<httpRuntime executionTimeout="600" maxRequestLength="51200" />

View 5 Replies

Sending Data Collection Report As An Email Body

Jul 20, 2010

When you click on a button my program have to send a email where a report must be generated from table adapters from dataset. Now this report is not going to be displayed when the button is clicked, so it will be sent automatically by code which I have some part(see below). My questions are:

1. how can you generate or build a report without displaying it.
2.embeed this report or data collection from the table adapters as part of the body of the email

my email code so far is this:
mail.From = New MailAddress("qwerty@[URL]")
mail.To.Add(New MailAddress("qwerty@[URL]"))
mail.Subject = "test"
mail.Priority = MailPriority.Normal
Dim smpt As New SmtpClient
smpt.Host = [URL]
smpt.Port = 25
smpt.Credentials = New System.Net.NetworkCredential("qwerty@[URL]","****")) 'hehe not telling :P smpt.EnableSsl = True................

View 16 Replies

C# - Sending Html Data To HttpHandler And Fetch It From Within Handler?

Aug 23, 2010

I am formatting html in my admin page and wants to send this html as part of Response object. I am redirecting to HttpHandler (Preview.ashx) using Response.Redirect, but how am I supposed to send that html within response and read it from httphandler using HttpContext object in my Handler?

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved