Welcome to Tech Support Forum home to more then 136,000 problems solved. Issues have included: Spyware, Malware, Virus Issues, Windows, Microsoft, Linux, Networking, Security, Hardware, and Gaming Getting your problem solved is as easy as:
1. Registering for a free account
2. Asking your question
3. Receiving an answer

Registered members:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* See fewer ads.
* And much more..

 





Want to know how to post a question? click here Having problems with spyware and pop-ups? First Steps
Go Back   Tech Support Forum > Design Forum > Web Serving and Management
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read

Web Serving and Management how to web server support forum

Reply
 
Thread Tools
Old 10-30-2007, 09:33 AM   #1 (permalink)
Registered User
 
mruthven's Avatar
 
Join Date: Oct 2007
Posts: 3
OS: Windows Vista Enterprise


IIS and gzip compression

I have a web service set up, being served from IIS 6.0. I have enabled compression in IIS, and it seems to be working, as I can use wfetch to create the following conversation:

started....
WWWConnect::Connect("192.168.0.37","80")\n
source port: 51454\r\n
REQUEST: **************\n
POST <sanitized>.asmx HTTP/1.1\r\n
Content-Type:application/soap+xml; charset=utf-8\r\n
Connection:close\r\n
Accept-Encoding:gzip\r\n
Host: <sanitized>\r\n
Accept: */*\r\n
Content-Length:531\r\n
\r\n
<?xml version="1.0"?>\r\n
<soap12:Envelope xmlns:soap12="http://www.w3.org/2003/05/soap-envelope" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/
XMLSchema-instance"><soap12:Body><sanitized></soap12:Body></soap12:Envelope>\r\n
RESPONSE: **************\n
HTTP/1.1 200 OK\r\n
Cache-Control: private, max-age=0\r\n
Connection: close\r\n
Date: Mon, 29 Oct 2007 20:49:20 GMT\r\n
Content-Type: application/soap+xml; charset=utf-8\r\n
Server: Microsoft-IIS/6.0\r\n
X-Powered-By: ASP.NET\r\n
X-AspNet-Version: 2.0.50727\r\n
Content-Encoding: gzip\r\n
Vary: Accept-Encoding\r\n
Transfer-Encoding: chunked\r\n
\r\n
<sanitized gzip encoded response>
WWWConnect::Close("192.168.0.37","80")\n
closed source port: 51454\r\n
finished.

I'm connecting to the web service from a BlackBerry, and when I do that, this line gets added to the request header:
Via:MDS_4.1.0.35\r\n
And the responses don't get gzipped when this happens. Is there something in IIS that I have set up wrong, such that the "Via" property would interfere with the compression? For reference, I encounter the problem whether the request is actually being sent through the MDS Simulator or not, so I do not believe this has anything to do with the fact the request is coming from a BlackBerry.

Thanks,

Mike
mruthven is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 05-05-2008, 11:50 AM   #2 (permalink)
Registered User
 
Join Date: May 2008
Posts: 5
OS: xp


Re: IIS and gzip compression

Hello Friend,
I'm having the same problem.
Were you able to solve this problem?
I need a help.
Thank you,
Willian
Willian is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 05-05-2008, 11:53 AM   #3 (permalink)
Registered User
 
mruthven's Avatar
 
Join Date: Oct 2007
Posts: 3
OS: Windows Vista Enterprise


Re: IIS and gzip compression

I didn't get this problem solved explicitly, no, but by using https instead of http, the Via header cannot be added, and so the gzip compression works. Hope that helps!

Mike
mruthven is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 05-05-2008, 02:04 PM   #4 (permalink)
Registered User
 
Join Date: May 2008
Posts: 5
OS: xp


Re: IIS and gzip compression

Thank you very much
Willian is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 05-06-2008, 02:21 PM   #5 (permalink)
Registered User
 
Join Date: May 2008
Posts: 5
OS: xp


Re: IIS and gzip compression

Hello,
How did you do to achieve the connection by sending the certificate?
I changed my webservice to https, but it is now the IIS is asking for the certified generated...
So I would like to ask you, what could I do to make the application open the connection and send the certified all together?!
Can you help me?
Thank you very much for all the help,
Willian
Willian is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 05-07-2008, 06:42 AM   #6 (permalink)
Registered User
 
mruthven's Avatar
 
Join Date: Oct 2007
Posts: 3
OS: Windows Vista Enterprise


Re: IIS and gzip compression

There shouldn't need to be any sending of certificates. You will need to generate a certificate for the web server and install it, and you should be good to go, no other changes needed (you may get asked to confirm the connection if you use a self-signed certificate).
mruthven is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 05-07-2008, 12:26 PM   #7 (permalink)
Registered User
 
Join Date: May 2008
Posts: 5
OS: xp


Re: IIS and gzip compression

You have used progress bar?
I would add a progress bar to show the status of the connection.
Could you help me?
Thank you very much for all the help,
Willian
Willian is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 05-09-2008, 07:38 AM   #8 (permalink)
Registered User
 
Join Date: May 2008
Posts: 5
OS: xp


Re: IIS and gzip compression

Hi.

I´m doing two requests to the web service and I get status 200. Therefore with the xml content, I call DataInputStream (I do know It got an exception but the error message comes with a null value) to unpack that data. Unfortunetly after that call, I receive the messages (MDS prompt log):

Received Packet for a timed out connection
Received an ack for non existing packet!

Regards,

Will
Willian is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -7. The time now is 05:20 PM.



Copyright 2001 - 2008, Tech Support Forum

Search Engine Friendly URLs by vBSEO

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82