<?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: HTTP Synthetic Monitor API with sha256 in Synthetic Monitoring</title>
    <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/HTTP-Synthetic-Monitor-API-with-sha256/m-p/276471#M3066</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;I have just run and URL looks like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AntonPineiro_0-1746442941999.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/27852i667FC4774762C6BF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AntonPineiro_0-1746442941999.png" alt="AntonPineiro_0-1746442941999.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;https://endpointhost/parent/R000057/v1/sent/status?api_key=xaaaaxxxxxaaaaxxxxxaaaazzz&amp;amp;sig=03fec1a1e92292b841fdd9c45add64421bfec456dbb871ccd2284cf04695f963&lt;/LI-CODE&gt;&lt;P&gt;I have just changed "&lt;SPAN&gt;timestamp" for "ts" when you create "sign" variable:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;sign = api_key+secret+str(ts)&lt;/LI-CODE&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
    <pubDate>Mon, 05 May 2025 11:04:18 GMT</pubDate>
    <dc:creator>AntonPineiro</dc:creator>
    <dc:date>2025-05-05T11:04:18Z</dc:date>
    <item>
      <title>HTTP Synthetic Monitor API with sha256</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/HTTP-Synthetic-Monitor-API-with-sha256/m-p/276464#M3065</link>
      <description>&lt;P&gt;Hello .&lt;/P&gt;
&lt;P&gt;Can someone help to rewrite a part of a python script in Dynatrace Synthetic using pre-script&amp;nbsp;&lt;/P&gt;
&lt;P&gt;here is the code of my python script .&lt;/P&gt;
&lt;LI-SPOILER&gt;&lt;FONT color="#800000"&gt;url ="&lt;A href="https://endpointhost/parent/R000057/v1/sent/status&amp;quot;" target="_blank" rel="noopener"&gt;https://endpointhost/parent/R000057/v1/sent/status"&lt;/A&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;api_key = "xaaaaxxxxxaaaaxxxxxaaaazzz"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;secret = "ZxxAAUUaa"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;ts = time.time()&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;sign = api_key+secret+str(timestamp)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;shen256 = hashlib.sha256(sign.encode())&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;finalurl = url+"?api_key="+api_key+"&amp;amp;sig="+shen256.hexdigest()&lt;BR /&gt;headers = {"User-Agent":"Myapp/Python"}&lt;BR /&gt;response = requests.get(finalurl , headers=headers)&lt;BR /&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/LI-SPOILER&gt;
&lt;P&gt;the difficulty is to rewrite the final url with&amp;nbsp; the Epoch&amp;nbsp; in combination with the key and secret .&lt;/P&gt;
&lt;P&gt;i tryed many things but still not working .&lt;/P&gt;
&lt;P&gt;any idea and help is welcome .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 May 2025 06:01:02 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/HTTP-Synthetic-Monitor-API-with-sha256/m-p/276464#M3065</guid>
      <dc:creator>H_THIM</dc:creator>
      <dc:date>2025-05-06T06:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP Synthetic Monitor API with sha256</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/HTTP-Synthetic-Monitor-API-with-sha256/m-p/276471#M3066</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I have just run and URL looks like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AntonPineiro_0-1746442941999.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/27852i667FC4774762C6BF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AntonPineiro_0-1746442941999.png" alt="AntonPineiro_0-1746442941999.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;https://endpointhost/parent/R000057/v1/sent/status?api_key=xaaaaxxxxxaaaaxxxxxaaaazzz&amp;amp;sig=03fec1a1e92292b841fdd9c45add64421bfec456dbb871ccd2284cf04695f963&lt;/LI-CODE&gt;&lt;P&gt;I have just changed "&lt;SPAN&gt;timestamp" for "ts" when you create "sign" variable:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;sign = api_key+secret+str(ts)&lt;/LI-CODE&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Mon, 05 May 2025 11:04:18 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/HTTP-Synthetic-Monitor-API-with-sha256/m-p/276471#M3066</guid>
      <dc:creator>AntonPineiro</dc:creator>
      <dc:date>2025-05-05T11:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP Synthetic Monitor API with sha256</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/HTTP-Synthetic-Monitor-API-with-sha256/m-p/276473#M3067</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/58682"&gt;@AntonPineiro&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for the quick reply.&lt;/P&gt;&lt;P&gt;Actually my python script is working well as expected what i want&amp;nbsp; is to do same thing in dynatrace on the HTTP monitor (in the pre-script) ..&lt;/P&gt;&lt;P&gt;what i want is to monitor the response of this request via synthetic monitor (HTTP) .&lt;/P&gt;</description>
      <pubDate>Mon, 05 May 2025 12:23:11 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/HTTP-Synthetic-Monitor-API-with-sha256/m-p/276473#M3067</guid>
      <dc:creator>H_THIM</dc:creator>
      <dc:date>2025-05-05T12:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP Synthetic Monitor API with sha256</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/HTTP-Synthetic-Monitor-API-with-sha256/m-p/276483#M3068</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You need to use JavaScript for this. &lt;A title="This" href="https://community.dynatrace.com/t5/Troubleshooting/HTTP-Monitors-How-to-sign-a-request-for-AWS-Signature-Version-4/tac-p/220776" target="_blank" rel="noopener"&gt;This&lt;/A&gt; is another use case but maybe it would help you.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Mon, 05 May 2025 14:43:50 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/HTTP-Synthetic-Monitor-API-with-sha256/m-p/276483#M3068</guid>
      <dc:creator>AntonPineiro</dc:creator>
      <dc:date>2025-05-05T14:43:50Z</dc:date>
    </item>
  </channel>
</rss>

