Web Request Compression

A

Arthur Zeyda

I need to compress the request for a webservice. I have
seen many examples of how to compress/decompress the
response. Most of the decompression examples seemed to
focus on overriding the GetWebResponse method in the
proxy. Is it possible to do something similar to
compress the request.

Thank You
Arthur Zeyda
 
A

Arthur Nesterovsky

Hi,
I need to compress the request for a webservice. I have
seen many examples of how to compress/decompress the
response. Most of the decompression examples seemed to
focus on overriding the GetWebResponse method in the
proxy. Is it possible to do something similar to
compress the request.

If we talk about of WebRequest object, so my answer why not?
You can write data to request output stream on the client side
using e.g. GZipOutputStream from ZipSharpLib library. But also
you have to set Transfer-Encoding header equal to gzip. This will
work only if you will use HTTP transport. But in this case, if yours
server will recognize and support gzip archiving, you will success.
_____________________________________
With best wishes, Arthur Nesterovsky
mailto: (e-mail address removed)
Visit my page: http://www.nesterovsky-bros.com
 
A

Arthur Zeyda

Whenever I implement that I get an error that says the
method I am trying to invoke in the webservice does not
exist. Is it just that I am not decompressing it on the
other side or is it not even getting to the webservice?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,810
Latest member
Kassie0918

Latest Threads

Top