Http request returning a partial response

I'm using the HTTP Request node with some custom headers such as these:

  msg.headers['Connection'] = 'keep-alive'
  msg.headers['Pragma'] = 'no-cache' 
  msg.headers['Cache-Control'] = 'no-cache' 
  msg.headers['Accept'] = 'application/xml, text/xml, */*; q=0.01' 
  msg.headers['DNT'] = '1' 
  msg.headers['X-Requested-With'] = 'XMLHttpRequest' 
  msg.headers['Faces-Request'] = 'partial/ajax' 
  msg.headers['User-Agent'] = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36' 
  msg.headers['Content-Type'] = 'application/x-www-form-urlencoded; charset=UTF-8' 

It works as expected, but the app is returning a partial response:

<partial-response><changes><update id="javax.faces.ViewState"><![CDATA[4972884326740660624:7593340223392667437]]></update></changes></partial-response>

This being a javaX app, I am guessing I should wait to get the full response. How could I do that in node-red? Or would it be better to make the request in the function node?

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.