<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Curl malformed url]]></title><description><![CDATA[<p dir="auto">I'm having some trouble with the Linux agent installation. Similar problem as another in the forums.</p>
<p dir="auto">I am also able to do a curl if I use the credentials.</p>
<p dir="auto">root@rockpro:/otm# curl -m 20 -s -u (user:pw) --connect-timeout 10 -X POST <a href="https://www.foxymon.com/receiver/receiver2.php" rel="nofollow ugc">https://www.foxymon.com/receiver/receiver2.php</a> -F function=receive_binary_location</p>
<p dir="auto"><a href="https://downloads.outagesio.com/otm/otm_1.67.2104_linuxroot@rockpro:/otm#" rel="nofollow ugc">https://downloads.outagesio.com/otm/otm_1.67.2104_linuxroot@rockpro:/otm#</a></p>
<p dir="auto">root@rockpro:/otm#</p>
<p dir="auto">root@rockpro:/otm#</p>
<p dir="auto">root@rockpro:/otm#</p>
<p dir="auto">root@rockpro:/otm#</p>
<p dir="auto">root@rockpro:/otm#</p>
<p dir="auto">root@rockpro:/otm# curl -v -m 20 -s -u <a rel="nofollow ugc">user:password</a>--connect-timeout 10 -X POST <a href="https://www.foxymon.com/receiver/receiver2.php" rel="nofollow ugc">https://www.foxymon.com/receiver/receiver2.php</a> -F function=receive_binary_location</p>
<ul>
<li>
<p dir="auto">Trying 184.164.141.219:443...</p>
</li>
<li>
<p dir="auto">Connected to <a href="http://www.foxymon.com" rel="nofollow ugc">www.foxymon.com</a> (184.164.141.219) port 443 (#0)</p>
</li>
<li>
<p dir="auto">ALPN, offering h2</p>
</li>
<li>
<p dir="auto">ALPN, offering http/1.1</p>
</li>
<li>
<p dir="auto">successfully set certificate verify locations:</p>
</li>
<li>
<p dir="auto">CAfile: /etc/ssl/certs/ca-certificates.crt</p>
</li>
<li>
<p dir="auto">CApath: /etc/ssl/certs</p>
</li>
<li>
<p dir="auto">TLSv1.3 (OUT), TLS handshake, Client hello (1):</p>
</li>
<li>
<p dir="auto">TLSv1.3 (IN), TLS handshake, Server hello (2):</p>
</li>
<li>
<p dir="auto">TLSv1.2 (IN), TLS handshake, Certificate (11):</p>
</li>
<li>
<p dir="auto">TLSv1.2 (IN), TLS handshake, Server key exchange (12):</p>
</li>
<li>
<p dir="auto">TLSv1.2 (IN), TLS handshake, Server finished (14):</p>
</li>
<li>
<p dir="auto">TLSv1.2 (OUT), TLS handshake, Client key exchange (16):</p>
</li>
<li>
<p dir="auto">TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):</p>
</li>
<li>
<p dir="auto">TLSv1.2 (OUT), TLS handshake, Finished (20):</p>
</li>
<li>
<p dir="auto">TLSv1.2 (IN), TLS handshake, Finished (20):</p>
</li>
<li>
<p dir="auto">SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384</p>
</li>
<li>
<p dir="auto">ALPN, server accepted to use http/1.1</p>
</li>
<li>
<p dir="auto">Server certificate:</p>
</li>
<li>
<p dir="auto">subject: <a href="http://CN=foxymon.com" rel="nofollow ugc">CN=foxymon.com</a></p>
</li>
<li>
<p dir="auto">start date: Feb 8 16:10:48 2021 GMT</p>
</li>
<li>
<p dir="auto">expire date: May 9 16:10:48 2021 GMT</p>
</li>
<li>
<p dir="auto">subjectAltName: host "<a href="http://www.foxymon.com" rel="nofollow ugc">www.foxymon.com</a>" matched cert's "<a href="http://www.foxymon.com" rel="nofollow ugc">www.foxymon.com</a>"</p>
</li>
<li>
<p dir="auto">issuer: C=US; O=Let's Encrypt; CN=R3</p>
</li>
<li>
<p dir="auto">SSL certificate verify ok.</p>
</li>
<li>
<p dir="auto">Server auth using Basic with user 'l1UxzvwhBu'</p>
</li>
</ul>
<blockquote>
<p dir="auto">POST /receiver/receiver2.php HTTP/1.1</p>
</blockquote>
<blockquote>
<p dir="auto">Host: <a href="http://www.foxymon.com" rel="nofollow ugc">www.foxymon.com</a></p>
</blockquote>
<blockquote>
<p dir="auto">Authorization: Basic bDFVeHp2d2hCdTpSYXVoRHhyMWpOc25jWlV5bHpBTU81R2Jwb0ZxM2dUN0JtVzh2WGVW</p>
</blockquote>
<blockquote>
<p dir="auto">User-Agent: curl/7.74.0</p>
</blockquote>
<blockquote>
<p dir="auto">Accept: <em>/</em></p>
</blockquote>
<blockquote>
<p dir="auto">Content-Length: 166</p>
</blockquote>
<blockquote>
<p dir="auto">Content-Type: multipart/form-data; boundary=------------------------f0db9c60c65555e9</p>
</blockquote>
<blockquote></blockquote>
<ul>
<li>
<p dir="auto">We are completely uploaded and fine</p>
</li>
<li>
<p dir="auto">Mark bundle as not supporting multiuse</p>
</li>
</ul>
<p dir="auto">&lt; HTTP/1.1 200 OK</p>
<p dir="auto">&lt; Date: Sat, 13 Mar 2021 02:44:08 GMT</p>
<p dir="auto">&lt; Server: Apache</p>
<p dir="auto">&lt; Expires: Thu, 19 Nov 1981 08:52:00 GMT</p>
<p dir="auto">&lt; Cache-Control: no-store, no-cache, must-revalidate</p>
<p dir="auto">&lt; Pragma: no-cache</p>
<p dir="auto">&lt; Set-Cookie: advanced-backend=uiof82q8o8qra1kom7dkthq5l7; path=/; HttpOnly</p>
<p dir="auto">&lt; Set-Cookie: _identity-backend=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/; HttpOnly</p>
<p dir="auto">&lt; Set-Cookie: _csrf-backend=bc4b70b337f447cbcee2acd528e9e2c25a2dfac79b5f26214ae166aef4a15464a%3A2%3A%7Bi%3A0%3Bs%3A13%3A%22_csrf-backend%22%3Bi%3A1%3Bs%3A32%3A%22690h-JTA5QuveoK5TrJ2D46V2-45jtxW%22%3B%7D; path=/; HttpOnly</p>
<p dir="auto">&lt; Transfer-Encoding: chunked</p>
<p dir="auto">&lt; Content-Type: text/html; charset=UTF-8</p>
<p dir="auto">&lt;</p>
<ul>
<li>Connection #0 to host <a href="http://www.foxymon.com" rel="nofollow ugc">www.foxymon.com</a> left intact</li>
</ul>
<p dir="auto"><a href="https://downloads.outagesio.com/otm/otm_1.67.2104_linuxroot@rockpro:/otm#" rel="nofollow ugc">https://downloads.outagesio.com/otm/otm_1.67.2104_linuxroot@rockpro:/otm#</a></p>
<p dir="auto">Here's my error:</p>
<p dir="auto">root@rockpro:/otm# ./starter_linux_ocp.sh</p>
<p dir="auto">Make sure to create /etc/agentid with credentials before starting this script</p>
<p dir="auto">Make sure your starter file points to the same directory that you have it in - Edit the 'start' option above accordingly</p>
<p dir="auto">You could add this to /etc/rc.local to start it or build a service for it. Please search Google for more.</p>
<p dir="auto">Receiving binary location</p>
<p dir="auto">Getting the OTM Package</p>
<p dir="auto">% Total % Received % Xferd Average Speed Time Time Time Current</p>
<p dir="auto">Dload Upload Total Spent Left Speed</p>
<p dir="auto">0 162k 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0</p>
<p dir="auto">Downloading OTM</p>
<p dir="auto">% Total % Received % Xferd Average Speed Time Time Time Current</p>
<p dir="auto">Dload Upload Total Spent Left Speed</p>
<p dir="auto">100 162k 100 162k 0 0 382k 0 --:--:-- --:--:-- --:--:-- 383k</p>
<p dir="auto">OTM downloaded, starting program then exiting this script</p>
<p dir="auto">./starter_linux_ocp.sh: line 56: /otm/otm_linux: cannot execute binary file: Exec format error</p>
<p dir="auto">Something didn't work, your agent is not running.</p>
<p dir="auto">root@rockpro:/otm#</p>
<p dir="auto">agentid has only the 2 lines, no extra spaces or line breaks. My script is in /otm/starter_linux_ocp.sh</p>
<p dir="auto">root@rockpro:/otm# cat starter_linux_ocp.sh</p>
<p dir="auto">#!/bin/bash</p>
<p dir="auto">#Version 1.0.3</p>
<h1>Enter the full path where you will be placing the starter_linux_otm.sh script into.</h1>
<h1>Our example shows '/agent', change this to what ever your path is.</h1>
<p dir="auto">start="/otm"</p>
<p dir="auto">command -v curl &gt;/dev/null 2&gt;&amp;1 || { echo &gt;&amp;2 "The curl package is needed but not installed. Please install it and try again. Aborting."; exit 1; }</p>
<p dir="auto">echo ""</p>
<p dir="auto">echo "Make sure to create /etc/agentid with credentials before starting this script"</p>
<p dir="auto">echo "Make sure your starter file points to the same directory that you have it in - Edit the 'start' option above accordingly"</p>
<p dir="auto">echo "You could add this to /etc/rc.local to start it or build a service for it. Please search Google for more."</p>
<p dir="auto">echo ""</p>
<p dir="auto">sleep 5</p>
<h3>Define Global Variables</h3>
<p dir="auto">OTMIN="otm"</p>
<p dir="auto">IN="$start/updater_linux_ocp.sh"</p>
<p dir="auto">DATE=<code>date +%d-%m-%y</code></p>
<p dir="auto">OTM_COMMAND="otm_linux"</p>
<p dir="auto">USERNAME=<code>awk 'NR==1' /etc/agentid</code></p>
<p dir="auto">PASSWORD=<code>awk 'NR==2' /etc/agentid</code></p>
<h3>OTM section</h3>
<h1>Get rid of any old version</h1>
<p dir="auto">rm -f $start/otm_linux</p>
<p dir="auto">OTM_HTTP_STATUS=''</p>
<p dir="auto">OTM_REMOTE_LENGTH=''</p>
<h3>Loop</h3>
<p dir="auto">until &lsqb;&lsqb; ${OTM_HTTP_STATUS} -eq 200 &amp;&amp; ! -z ${OTM_REMOTE_LENGTH} &rsqb;&rsqb;</p>
<p dir="auto">do</p>
<p dir="auto">sleep 5</p>
<h2></h2>
<p dir="auto">echo "Receiving binary location"</p>
<p dir="auto">BINARY_LOCATION=$(curl -m 20 -s -u $USERNAME:$PASSWORD –connect-timeout 10 -X POST <a href="https://www.foxymon.com/receiver/receiver2.php" rel="nofollow ugc">https://www.foxymon.com/receiver/receiver2.php</a> -F function=receive_binary_location)</p>
<p dir="auto">echo "Getting the OTM Package"</p>
<p dir="auto">curl -I -m 30 --connect-timeout 15 "$BINARY_LOCATION" -o $start/otminfo.log</p>
<p dir="auto">OTM_HTTP_STATUS=$(cat $start/otminfo.log | awk '/HTTP/ {print $2}')</p>
<p dir="auto">OTM_REMOTE_LENGTH=$( cat $start/otminfo.log | awk '/Content-Length/ {print $2}' | sed -e 's/[\r\n]//g' )</p>
<p dir="auto">done</p>
<h3></h3>
<p dir="auto">if &lsqb;&lsqb; ${OTM_HTTP_STATUS} -eq 200 &amp;&amp; ! -z ${OTM_REMOTE_LENGTH} &rsqb;&rsqb;; then</p>
<p dir="auto">echo "Downloading OTM"</p>
<p dir="auto">curl -m 30 –connect-timeout 15 "$BINARY_LOCATION" -o $start/otm_linux</p>
<p dir="auto">sleep 2</p>
<p dir="auto">OTM_LOCAL_LENGTH=$( ls -l $start/otm_linux | awk '{print $5}' | sed -e 's/[\r\n]//g' )</p>
<p dir="auto">if [ "${OTM_LOCAL_LENGTH}" == "${OTM_REMOTE_LENGTH}" ]; then</p>
<p dir="auto">echo "OTM downloaded, starting program then exiting this script"</p>
<p dir="auto">cd $start</p>
<p dir="auto">chmod +x $start/otm_linux</p>
<h1>exec $start/otm_linux &amp;</h1>
<p dir="auto">$start/otm_linux &amp;</p>
<p dir="auto">ps cax | grep otm_linux &gt; /dev/null</p>
<p dir="auto">if [ $? -eq 0 ]; then</p>
<p dir="auto">echo ""</p>
<p dir="auto">echo "Congratulations, your agent is now monitoring your Internet connectivity."</p>
<p dir="auto">echo "Type 'ps cax | grep otm_linux' to see the process number"</p>
<p dir="auto">else</p>
<p dir="auto">echo "Something didn't work, your agent is not running."</p>
<p dir="auto">fi</p>
<p dir="auto">fi</p>
<p dir="auto">fi</p>
<p dir="auto">root@rockpro:/otm#&lt;/user:password&gt;</p>
]]></description><link>https://support.isptracker.com/topic/125/curl-malformed-url</link><generator>RSS for Node</generator><lastBuildDate>Sun, 09 Aug 2026 10:30:49 GMT</lastBuildDate><atom:link href="https://support.isptracker.com/topic/125.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 13 Mar 2021 03:03:36 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Curl malformed url on Sat, 13 Mar 2021 22:37:51 GMT]]></title><description><![CDATA[<p dir="auto">LOL, I was just about to say…</p>
<p dir="auto">Glad you got it running :).</p>
]]></description><link>https://support.isptracker.com/post/547</link><guid isPermaLink="true">https://support.isptracker.com/post/547</guid><dc:creator><![CDATA[ISPtracker_Support]]></dc:creator><pubDate>Sat, 13 Mar 2021 22:37:51 GMT</pubDate></item><item><title><![CDATA[Reply to Curl malformed url on Sat, 13 Mar 2021 22:16:03 GMT]]></title><description><![CDATA[<p dir="auto">OK, I got it working using the proper agent. :)</p>
<p dir="auto">Thanks for the support!</p>
]]></description><link>https://support.isptracker.com/post/545</link><guid isPermaLink="true">https://support.isptracker.com/post/545</guid><dc:creator><![CDATA[sapeters68106]]></dc:creator><pubDate>Sat, 13 Mar 2021 22:16:03 GMT</pubDate></item><item><title><![CDATA[Reply to Curl malformed url on Sat, 13 Mar 2021 21:29:34 GMT]]></title><description><![CDATA[<p dir="auto">Also, I'm running this on a Pine64 RockPro64, 64-bit ARM platform. And I'm trying to run your Linux Debian 7 script.</p>
<p dir="auto">scott@rockpro:~$ cat /etc/os-release</p>
<p dir="auto">PRETTY_NAME="Debian GNU/Linux bullseye/sid"</p>
<p dir="auto">NAME="Debian GNU/Linux"</p>
<p dir="auto">ID=debian</p>
<p dir="auto">HOME_URL="<a href="https://www.debian.org/" rel="nofollow ugc">https://www.debian.org/</a>"</p>
<p dir="auto">SUPPORT_URL="<a href="https://www.debian.org/support" rel="nofollow ugc">https://www.debian.org/support</a>"</p>
<p dir="auto">BUG_REPORT_URL="<a href="https://bugs.debian.org/" rel="nofollow ugc">https://bugs.debian.org/</a>"</p>
<p dir="auto">scott@rockpro:~$ uname -r</p>
<p dir="auto">5.10.0-4-arm64</p>
<p dir="auto">scott@rockpro:~$ lsb_release -a</p>
<p dir="auto">No LSB modules are available.</p>
<p dir="auto">Distributor ID: Debian</p>
<p dir="auto">Description: Debian GNU/Linux bullseye/sid</p>
<p dir="auto">Release: testing</p>
<p dir="auto">Codename: bullseye</p>
<p dir="auto">scott@rockpro:~$ lsb_release -d</p>
<p dir="auto">Description: Debian GNU/Linux bullseye/sid</p>
<p dir="auto">scott@rockpro:~$ hostnamectl</p>
<p dir="auto">Static hostname: rockpro</p>
<p dir="auto">Icon name: computer</p>
<p dir="auto">Machine ID: b4c2b6335c05427290bd2213cb9dd2ac</p>
<p dir="auto">Boot ID: 1f307ff6a0b344efa95baf617efad53d</p>
<p dir="auto">Operating System: Debian GNU/Linux bullseye/sid</p>
<p dir="auto">Kernel: Linux 5.10.0-4-arm64</p>
<p dir="auto">Architecture: arm64</p>
]]></description><link>https://support.isptracker.com/post/544</link><guid isPermaLink="true">https://support.isptracker.com/post/544</guid><dc:creator><![CDATA[sapeters68106]]></dc:creator><pubDate>Sat, 13 Mar 2021 21:29:34 GMT</pubDate></item><item><title><![CDATA[Reply to Curl malformed url on Sat, 13 Mar 2021 21:14:47 GMT]]></title><description><![CDATA[<p dir="auto">Here, this is a better view.</p>
<p dir="auto">root@rockpro:/otm# ls -la</p>
<p dir="auto">total 184</p>
<p dir="auto">drwxr-xr-x 2 root root 4096 Mar 13 15:11 .</p>
<p dir="auto">drwxr-xr-x 19 root root 4096 Mar 12 17:42 ..</p>
<p dir="auto">-rw-r–r-- 1 root root 193 Mar 13 15:11 otminfo.log</p>
<p dir="auto">-rwxr-xr-x 1 root root 166024 Mar 13 15:11 otm_linux</p>
<p dir="auto">-rwxr-xr-x 1 root root 2366 Mar 12 18:25 starter_linux_ocp1.sh</p>
<p dir="auto">-rwxr-xr-x 1 root root 2332 Mar 12 17:48 starter_linux_ocp.sh</p>
]]></description><link>https://support.isptracker.com/post/543</link><guid isPermaLink="true">https://support.isptracker.com/post/543</guid><dc:creator><![CDATA[sapeters68106]]></dc:creator><pubDate>Sat, 13 Mar 2021 21:14:47 GMT</pubDate></item><item><title><![CDATA[Reply to Curl malformed url on Sat, 13 Mar 2021 21:14:00 GMT]]></title><description><![CDATA[<p dir="auto">Here are the contents of /otm</p>
<p dir="auto">sapeters@rockpro:/otm$ ls</p>
<p dir="auto">otminfo.log otm_linux starter_linux_ocp1.sh starter_linux_ocp.sh</p>
<p dir="auto">The other .sh is one I edited using the actual credentials for the curl instead of the variables for user/pw, but got same results. (As mentioned before, if I execute curl from the prompt, it is successful.</p>
<p dir="auto">root@rockpro:/otm# ./starter_linux_ocp1.sh</p>
<p dir="auto">Make sure to create /etc/agentid with credentials before starting this script</p>
<p dir="auto">Make sure your starter file points to the same directory that you have it in - Edit the 'start' option above accordingly</p>
<p dir="auto">You could add this to /etc/rc.local to start it or build a service for it. Please search Google for more.</p>
<p dir="auto">Receiving binary location</p>
<p dir="auto">Getting the OTM Package</p>
<p dir="auto">% Total % Received % Xferd Average Speed Time Time Time Current</p>
<p dir="auto">Dload Upload Total Spent Left Speed</p>
<p dir="auto">0 162k 0 0 0 0 0 0 –:--:-- --:--:-- --:--:-- 0</p>
<p dir="auto">Downloading OTM</p>
<p dir="auto">% Total % Received % Xferd Average Speed Time Time Time Current</p>
<p dir="auto">Dload Upload Total Spent Left Speed</p>
<p dir="auto">100 162k 100 162k 0 0 415k 0 --:--:-- --:--:-- --:--:-- 414k</p>
<p dir="auto">OTM downloaded, starting program then exiting this script</p>
<p dir="auto">./starter_linux_ocp1.sh: line 56: /otm/otm_linux: cannot execute binary file: Exec format error</p>
<p dir="auto">Something didn't work, your agent is not running.</p>
<p dir="auto">root@rockpro:/otm#</p>
]]></description><link>https://support.isptracker.com/post/542</link><guid isPermaLink="true">https://support.isptracker.com/post/542</guid><dc:creator><![CDATA[sapeters68106]]></dc:creator><pubDate>Sat, 13 Mar 2021 21:14:00 GMT</pubDate></item><item><title><![CDATA[Reply to Curl malformed url on Sat, 13 Mar 2021 16:56:47 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Yes, for some reason, the agent is not ending up in the same directory specified or something along those lines.</p>
<p dir="auto">Since your starting directory is /otm, can you ls that directlry and show me what ends up in there after you've run the script.</p>
<p dir="auto">You should see the following at least.</p>
<p dir="auto">-rw-r–r-- 1 root root 193 Mar 13 09:02 otminfo.log</p>
<p dir="auto">-rwxr-xr-x 1 root root 166024 Mar 13 09:02 otm_linux</p>
<p dir="auto">-rwxr-xr-x. 1 root root 2335 Sep 12 10:27 starter_linux_otm.sh</p>
<p dir="auto">You mentioned trying the download directly using the credentials and that worked. That makes me wonder if the directory where the script is running is not writable or something along those lines.</p>
]]></description><link>https://support.isptracker.com/post/540</link><guid isPermaLink="true">https://support.isptracker.com/post/540</guid><dc:creator><![CDATA[ISPtracker_Support]]></dc:creator><pubDate>Sat, 13 Mar 2021 16:56:47 GMT</pubDate></item></channel></rss>