Previous Next

Thread: Sending compressed data in PUT/POST request

Last post 04-30-2008 1:06 AM by SasikumarG. 2 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (3 items)

Sort Posts:

  • 03-28-2008, 8:25 AM

    Sending compressed data in PUT/POST request

    Hi,We are facing problem with injecting compressed (gzip) mail items. We are trying with Exchange 2003.

    We configured our mail server’s IIS to support compression of .EML files. http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/502ef631-3695-4616-b268-cbe7cf1351ce.mspx?mfr=true .

    And our extraction works fine with extracting mail items in compressed form.

    We are using “Accept-Encoding” header with value “gzip, deflate” along with “GET” method.

    But when we try to inject the compressed stream to a mailbox using “PUT” method, we are getting blank mail item. Actual mail is not getting injected.We tried with following approaches along with PUT method:
    1. “Accept-Encoding” header with value “gzip, deflate”.
    2. “Content-Encoding” header with value “gzip”.
    3. Setting the AutomaticDecompression property of HttpWebRequest to DecompressionMethods.Gzip.
    4. Setting the Content-Type of the HttpWebRequest to “message/rfc822”, “application/x-compressed”, “application/x-zip-compressed”, “application/x-gzip-compressed” and “application/octet-stream”.
     Are we missing something else? Please help us!!!
  • 04-30-2008, 12:51 AM In reply to

    • ksingla
    • Top 10 Contributor
    • Joined on 06-14-2006, 3:02 AM
    • Redmond, WA
    • Posts 547

    Re: Sending compressed data in PUT/POST request

    SasikumarG,
    IIS compression module doesn't support accepting compressed request body and decompressing. It only supports sending compressed responses. So what you are trying to do is not supported out of the box. I am not sure if there are any third party solutions which can do this.
    Thanks,
    Kanwal

  • 04-30-2008, 1:06 AM In reply to

    Re: Sending compressed data in PUT/POST request

    Thanks Kanwal!

Page 1 of 1 (3 items)
Page view counter