Forum Discussion

Jeff_Siegel_152's avatar
Jeff_Siegel_152
Icon for Nimbostratus rankNimbostratus
Jun 26, 2014

HTTP::Response with Chunking

I’m trying to use an I-Rule to mimic an application response. It may be failing due to chunking. The message I want to mimic has something like this in it

 

HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: text/xml;charset=utf-8 Transfer-Encoding: chunked Date: Thu, 26 Jun 2014 17:40:25 GMT … followed by a SOAP message

 

My I-Rule finds messages where this is an appropriate response, then uses HTTP::respond to send stuff to the client that looks more like the first message. It looks something like this:

 

HTTP::respond 200 content "" Content-Type "text/xml;charset=utf-8" Date "Thu, 26 Jun 2014 17:40:25 GMT"

 

Unlike the real message, the I-Rule generated message does not do chunking. Is there a way to make sure the Response is chunked? If I add ‘ Transfer-Encoding "chunked" ‘ to the end of the HTTP:respond line, it just hangs the I-Rule. Thanks,

 

Jeff