<?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   &amp;quot;UNSUPPORTED_FILE&amp;quot; after uploading a file    in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/quot-UNSUPPORTED-FILE-quot-after-uploading-a-file/m-p/27179#M1565</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have a few questions:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&amp;nbsp;I uploaded separately multiple files using the API on 90% of them I get the message "CP_EXTRACT_RESULT_UNSUPPORTED_FILE" why is that?, it gives that message even for simple txt files?&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;When I'm trying to ask a query about some file using his md5/sha1 it tells me "could not find the requested file. ,Please upload it" even that I uploaded the file a few seconds before using the query, any suggestions?&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Feb 2018 17:45:41 GMT</pubDate>
    <dc:creator>Nehorai_Elbaz</dc:creator>
    <dc:date>2018-02-02T17:45:41Z</dc:date>
    <item>
      <title>"UNSUPPORTED_FILE" after uploading a file</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/quot-UNSUPPORTED-FILE-quot-after-uploading-a-file/m-p/27179#M1565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have a few questions:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&amp;nbsp;I uploaded separately multiple files using the API on 90% of them I get the message "CP_EXTRACT_RESULT_UNSUPPORTED_FILE" why is that?, it gives that message even for simple txt files?&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;When I'm trying to ask a query about some file using his md5/sha1 it tells me "could not find the requested file. ,Please upload it" even that I uploaded the file a few seconds before using the query, any suggestions?&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2018 17:45:41 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/quot-UNSUPPORTED-FILE-quot-after-uploading-a-file/m-p/27179#M1565</guid>
      <dc:creator>Nehorai_Elbaz</dc:creator>
      <dc:date>2018-02-02T17:45:41Z</dc:date>
    </item>
    <item>
      <title>Re:   "UNSUPPORTED_FILE" after uploading a file</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/quot-UNSUPPORTED-FILE-quot-after-uploading-a-file/m-p/27180#M1566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. You are uploading a not supported file to TEX, that means that you might be using&amp;nbsp; &amp;nbsp;['te','extraction'] as features for all your files. If you upload en executable for example you will receive&amp;nbsp;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;CP_EXTRACT_RESULT_UNSUPPORTED_FILE because you cannot apply TEX to an exe.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;2. When using Cloud Service you must include a cookie to the request.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;Using Python requests it looks like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;results = requests.post&lt;EM&gt;( serviceSettings['service_primary'] + 'query', headers = headers, data = json.dumps(request), &lt;STRONG&gt;cookies=cookie,&lt;/STRONG&gt; verify=False)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;You obtain the cookie after each request, use it once you get it for all the request of this file.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Cookie is only needed for cloud service.&amp;nbsp;&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Feb 2018 18:59:30 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/quot-UNSUPPORTED-FILE-quot-after-uploading-a-file/m-p/27180#M1566</guid>
      <dc:creator>Javier_Padilla</dc:creator>
      <dc:date>2018-02-15T18:59:30Z</dc:date>
    </item>
  </channel>
</rss>

