<?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 How to pass Splunk Cloud verification for my Python script using the HTTP requests module? in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/How-to-pass-Splunk-Cloud-verification-for-my-Python-script-using/m-p/487415#M8710</link>
    <description>&lt;P&gt;My script works great On-Premise, but Splunk Cloud rejects it&lt;/P&gt;
&lt;P&gt;I use the requests module to do HTTPS requests like this one&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;response = requests.post(url, auth=(user, pwd), headers=headers ,data=data)
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;In Splunk Cloud it gets rejected because it thinks it might be insecure, when passing parameters to the requests module, I must do parameter=&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;Possible insecure HTTP Connection. Match: requests.post Positional arguments, ["?"]; Keyword arguments, {"auth": "?", "headers": "?", "data": "?"} File: bin/alert_event.py Line Number: 46&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I don't know how to fix this.&lt;/P&gt;
&lt;P&gt;Anyone knows how to pass this test?&lt;/P&gt;</description>
    <pubDate>Sun, 07 Jun 2020 18:35:40 GMT</pubDate>
    <dc:creator>guarisma</dc:creator>
    <dc:date>2020-06-07T18:35:40Z</dc:date>
    <item>
      <title>How to pass Splunk Cloud verification for my Python script using the HTTP requests module?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-pass-Splunk-Cloud-verification-for-my-Python-script-using/m-p/487415#M8710</link>
      <description>&lt;P&gt;My script works great On-Premise, but Splunk Cloud rejects it&lt;/P&gt;
&lt;P&gt;I use the requests module to do HTTPS requests like this one&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;response = requests.post(url, auth=(user, pwd), headers=headers ,data=data)
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;In Splunk Cloud it gets rejected because it thinks it might be insecure, when passing parameters to the requests module, I must do parameter=&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;Possible insecure HTTP Connection. Match: requests.post Positional arguments, ["?"]; Keyword arguments, {"auth": "?", "headers": "?", "data": "?"} File: bin/alert_event.py Line Number: 46&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I don't know how to fix this.&lt;/P&gt;
&lt;P&gt;Anyone knows how to pass this test?&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jun 2020 18:35:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-pass-Splunk-Cloud-verification-for-my-Python-script-using/m-p/487415#M8710</guid>
      <dc:creator>guarisma</dc:creator>
      <dc:date>2020-06-07T18:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass Splunk Cloud verification for my Python script using the HTTP requests module?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-pass-Splunk-Cloud-verification-for-my-Python-script-using/m-p/503813#M8711</link>
      <description>&lt;P&gt;Before calling requests.post, add something like:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;if not url.startswith("https"):
    logger.critical("URL must be HTTPS")
    exit(1)&lt;/LI-CODE&gt;&lt;P&gt;This way when they vet your app they can see that a non-https url couldnt be used.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jun 2020 22:16:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-pass-Splunk-Cloud-verification-for-my-Python-script-using/m-p/503813#M8711</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2020-06-10T22:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass Splunk Cloud verification for my Python script using the HTTP requests module?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-pass-Splunk-Cloud-verification-for-my-Python-script-using/m-p/574664#M8712</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;were you able to solve the problem? The same is happening to me.&lt;/P&gt;&lt;P&gt;Thanks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Nov 2021 21:21:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-pass-Splunk-Cloud-verification-for-my-Python-script-using/m-p/574664#M8712</guid>
      <dc:creator>lpuentes</dc:creator>
      <dc:date>2021-11-11T21:21:57Z</dc:date>
    </item>
  </channel>
</rss>

