<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">

 
 
  <channel>
    <title>REST API Response Stream on ServiceNow Developer Blog</title>
    <link>https://developer.servicenow.com/blog.do?p=/tags/rest-api-response-stream/</link>
    <description>Recent content in REST API Response Stream on ServiceNow Developer Blog</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <lastBuildDate>Fri, 31 Mar 2017 20:41:00 +0000</lastBuildDate>
    
        
        
         
        <atom:link href="https://developer.servicenow.com/blog.do?p=/tags/rest-api-response-stream/index.xml" rel="self" type="application/rss+xml" />
    
    
    <item>
      <title>Scripted REST API, Stream Writers and HTTP Status</title>
      <link>https://developer.servicenow.com/blog.do?p=/post/scripted-rest-api-stream-writers-and-http-status/</link>
      <pubDate>Fri, 31 Mar 2017 20:41:00 +0000</pubDate>
      
      <guid>https://developer.servicenow.com/blog.do?p=/post/scripted-rest-api-stream-writers-and-http-status/</guid>
      <description>tl;dr If you use Stream Writers in your Scripted REST API, explicitly set the HTTP status or it won&amp;rsquo;t work the way you expect.
Muuuuch longer version This is based on a problem a coworker (and sometimes cohost) saw yesterday. He set up a Scripted REST API that returned about 200 records in a JSON object, total payload was ~36k. When loaded in the browser directly, it worked fine. Consumed via either curl or a different instance with a REST message, nothing ever moved down the wire.</description>
    </item>
    
  </channel>
</rss>