![]() |
![]() |
![]() |
|||||
![]() |
![]() |
![]() |
![]() |
![]() |
|||
| 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: * 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 |
|
|||||||
| Web Serving and Management how to web server support forum |
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) |
|
Registered User
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 |
|
|
|
| Important Information |
|
Join the #1 Tech Support Forum Today - It's Totally Free!
TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free. Join TechSupportforum.com Today - Click Here |
|
|
#3 (permalink) |
|
Registered User
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 |
|
|
|
|
|
#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 |
|
|
|
|
|
#6 (permalink) |
|
Registered User
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).
|
|
|
|
|
|
#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 |
|
|
|
![]() |
| Thread Tools | |
|
|