You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Shailender Khugshal <sh...@gmail.com> on 2015/07/20 12:22:46 UTC

[users@httpd] Problem in chunked response

Hi,

We are facing problem while getting last chunk which looks as below
24;status_upadate=Yes

When apache forwards this chunk to client it removes the part after
semi-colon(;) and hence the client ends up getting a chunk without status.

Is there any configuration wherein apache can avoid manipulating last
chunk. Maybe just ignore it.

Unfortunately we don't have control over backend server where we could have
applied following header
Header set X-XSS-Protection: 0



-- 
Thanks and Regards,
Shailender Kumar

Re: [users@httpd] Re: Problem in chunked response

Posted by Yann Ylavic <yl...@gmail.com>.
On Wed, Jul 22, 2015 at 8:58 AM, skbarik <sk...@gmail.com> wrote:
>
> We are very heavily dependant upon the extension to indicate certain status
> to client.
> and unfortunately we dont have any control over backend to change this.
> Is there way to configure mod proxy to not discard this.

No, mod_proxy handles Content-Length and/or Transfer-Encoding per
connection (hop-by-hop), and may switch from one to the other
depending on whether it already has the whole payload or not (plus
possible content transformations in the chain).

Even when the chunked Transfer-Encoding encoding is preserved, chunks'
boundaries may change, hence it does not (always) make sense to
preserve chunk-extensions.

The backend can hardly rely on chunk-extensions as an "out of band"
communication with the user-agent, precisely because there may be
intermediaries, and extensions are always meant for the next hop.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


[users@httpd] Re: Problem in chunked response

Posted by skbarik <sk...@gmail.com>.
Hi Yann

Thanks for the reply.

We are very heavily dependant upon the extension to indicate certain status
to client.
and unfortunately we dont have any control over backend to change this.
Is there way to configure mod proxy to not discard this.

Thanks.

barik



--
View this message in context: http://apache-http-server.18135.x6.nabble.com/Problem-in-chunked-response-tp5022879p5022927.html
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Re: Problem in chunked response

Posted by Yann Ylavic <yl...@gmail.com>.
On Tue, Jul 21, 2015 at 10:31 AM, shailender
<sh...@gmail.com> wrote:
>
> Is there any configuration available in apache which can be applied to send
> the chunk as it is to client.

mod_proxy won't forward chunk-extensions, and it is not required to
(see [1]) since they are hop-by-hop specifications (per connection):

[1] https://tools.ietf.org/html/rfc7230#section-4.1.1 :
"The chunked encoding is specific to each connection and is likely to
be removed or recoded by each recipient (including intermediaries)
before any higher-level application would have a chance to inspect the
extensions. Hence, use of chunk extensions is generally limited to
specialized HTTP services such as "long polling" (where client and
server can have shared expectations regarding the use of chunk
extensions) or for padding within an end-to-end secured connection."

Regards,
Yann.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


[users@httpd] Re: Problem in chunked response

Posted by shailender <sh...@gmail.com>.
Maybe I was not clear in my question, so updating 

We have response which is routed via apache proxy. Our client needs complete
chunk in response but extension(which begins with ;) in the response is
chopped off by proxy.

Is there any configuration available in apache which can be applied to send
the chunk as it is to client.


Thanks



--
View this message in context: http://apache-http-server.18135.x6.nabble.com/Problem-in-chunked-response-tp5022879p5022898.html
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org