RE: Sending compressed Web Service requests to Apache server
From: PerryG (PerryG_at_community.nospam)
Date: 12/16/04
- Next message: Gidrazas: "Re: ERROR:Crystal Reports - Logon failed."
- Previous message: Hemant: "Runtime error Server Error in '/' Application"
- In reply to: Steven Cheng[MSFT]: "RE: Sending compressed Web Service requests to Apache server"
- Next in thread: Steven Cheng[MSFT]: "RE: Sending compressed Web Service requests to Apache server"
- Reply: Steven Cheng[MSFT]: "RE: Sending compressed Web Service requests to Apache server"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 15 Dec 2004 23:45:01 -0800
"Steven Cheng[MSFT]" wrote:
> Hi Perry,
>
> Thanks for your posting. From your description, you're using the
> HttpWebREquest component in .net to send a certain compressed package
> (GZIP) to a service hosted on a apache web server. That service will
> decompress the package and send back a compressed response. The problem is
> that that service module need to get the actual length of the uncompressed
> package stream rather than the compressed length of the Content-Length in
> the httpwebrequest's request message, yes?
>
> As for the HttpWebRequest's ContentLength, i'm afraid this is a fixed
> behavior that we must set the value as the actual length of the binary
> stream in the Request stream rather than any other value. And this is
> defined by the standard http message. Are you sending the compressed
> package using the multi-part/form-data contenttype? If so, we can add some
> additional name/value fields into the http message body to represent the
> uncompressed package's size (or some other custom http headers) , but it
> all depend on the serverside's service module which may need to change the
> way it retrieve the package's actual size( not use the content-length of
> the http message).
>
> Please feel free to post here if you have any other ideas or concerns
> .Thanks.
>
> Regards,
>
> Steven Cheng
> Microsoft Online Support
>
> Get Secure! www.microsoft.com/security
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
>
>
Your description of what we're trying to accomplish is correct.
As to your suggestion to send custom headers, that currently isn't an
option.
We did try experiementing with sending a chunked request since with chunked
requests, no content-length header needs to be specified. I'm able to send a
chunked request, the server receives it, but is not receiving the correct
'end transmission' marker/character from the .net client (sorry not sure what
the correct terminology is). It could be a compatiblity issue between .NET
and Apache, not sure. Any ideas on that one?
- Next message: Gidrazas: "Re: ERROR:Crystal Reports - Logon failed."
- Previous message: Hemant: "Runtime error Server Error in '/' Application"
- In reply to: Steven Cheng[MSFT]: "RE: Sending compressed Web Service requests to Apache server"
- Next in thread: Steven Cheng[MSFT]: "RE: Sending compressed Web Service requests to Apache server"
- Reply: Steven Cheng[MSFT]: "RE: Sending compressed Web Service requests to Apache server"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|