<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: 5.1 tHttpRequest get Http Status Code in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/5-1-tHttpRequest-get-Http-Status-Code/m-p/2366338#M129840</link>
    <description>Hi 
&lt;BR /&gt;Just an diea I did't try, check the 'write the response content to file' option to output the response to a file, and then read this file to extract the status code with regular expression or othey way, and store it to a context variable, String type or int type. About the expression of runIf link, something like: 
&lt;BR /&gt;context.Http_Status_Code==200 // for int type. 
&lt;BR /&gt;or 
&lt;BR /&gt;context.Http_Status_Code.equals("200") // for string type 
&lt;BR /&gt;Shong</description>
    <pubDate>Mon, 19 Aug 2013 15:47:41 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-08-19T15:47:41Z</dc:date>
    <item>
      <title>5.1 tHttpRequest get Http Status Code</title>
      <link>https://community.qlik.com/t5/Talend-Studio/5-1-tHttpRequest-get-Http-Status-Code/m-p/2366337#M129839</link>
      <description>Hi, 
&lt;BR /&gt;I have a job sending data to a webservice using component tHttpRequest and i want this job to take a different path depending on the Http Status code received from the tHttpRequest. 
&lt;BR /&gt;Unfortunately i have been unable to capture the Http Status code even though it is displayed in the console. 
&lt;BR /&gt;I have attached a screenshot of my job. 
&lt;BR /&gt;Ideally the 2 if links would contain something like ?context.Http_Status_Code.equals(200)? and ?!context.Http_Status_Code.equas(200)?. 
&lt;BR /&gt;Do you have any idea on how to get this status code ? 
&lt;BR /&gt;Regards, Valentin 
&lt;BR /&gt;NB : I am working with 5.1 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MAuQ.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146276i68B159F572D981F7/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MAuQ.jpg" alt="0683p000009MAuQ.jpg" /&gt;&lt;/span&gt;</description>
      <pubDate>Mon, 19 Aug 2013 10:23:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/5-1-tHttpRequest-get-Http-Status-Code/m-p/2366337#M129839</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-19T10:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: 5.1 tHttpRequest get Http Status Code</title>
      <link>https://community.qlik.com/t5/Talend-Studio/5-1-tHttpRequest-get-Http-Status-Code/m-p/2366338#M129840</link>
      <description>Hi 
&lt;BR /&gt;Just an diea I did't try, check the 'write the response content to file' option to output the response to a file, and then read this file to extract the status code with regular expression or othey way, and store it to a context variable, String type or int type. About the expression of runIf link, something like: 
&lt;BR /&gt;context.Http_Status_Code==200 // for int type. 
&lt;BR /&gt;or 
&lt;BR /&gt;context.Http_Status_Code.equals("200") // for string type 
&lt;BR /&gt;Shong</description>
      <pubDate>Mon, 19 Aug 2013 15:47:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/5-1-tHttpRequest-get-Http-Status-Code/m-p/2366338#M129840</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-19T15:47:41Z</dc:date>
    </item>
  </channel>
</rss>

