<?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: Referencing spaces in names using XML API in Automation/API Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/referencing-spaces-in-names-using-xml-api/m-p/171730#M1417</link>
    <description>&lt;P&gt;I have found when using cURL, %20 works for space chars, for example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;curl -X GET '&lt;A href="https://firewall/api/?type=keygen&amp;amp;user=myuser&amp;amp;password=my%20password" target="_blank" rel="nofollow noopener noreferrer"&gt;https://firewall/api/?type=keygen&amp;amp;user=myuser&amp;amp;password=my%20password&lt;/A&gt;'&lt;/P&gt;</description>
    <pubDate>Tue, 15 Aug 2017 20:16:29 GMT</pubDate>
    <dc:creator>A.Waitkus</dc:creator>
    <dc:date>2017-08-15T20:16:29Z</dc:date>
    <item>
      <title>Referencing spaces in names using XML API</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/referencing-spaces-in-names-using-xml-api/m-p/158736#M1376</link>
      <description>&lt;P&gt;&lt;SPAN&gt;The only thing he hasn't been able to resolve now is if the URL to block contains certain characters, like &amp;amp;, he gets a malformed request error. Any idea how to get around this. I tried \ before it as well as using an encoding value like %26 in place of it. If it helps, below is an example of a url that is not working. If I delete both instances of the &amp;amp; the command works so it has to be something with that character.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;curl -k "&lt;/SPAN&gt;&lt;A href="https://kermit.umbc.edu/api/?type=config&amp;amp;action=set&amp;amp;key=%3Ckey%3E=&amp;amp;xpath=/config/shared/profiles/custom-url-category/entry" target="_blank"&gt;https://kermit.umbc.edu/api/?type=config&amp;amp;action=set&amp;amp;key=&amp;lt;key&amp;gt;=&amp;amp;xpath=/config/shared/profiles/custom-url-category/entry&lt;/A&gt;&lt;SPAN&gt;\[@name='SES'\]/list&amp;amp;element=&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;member&amp;gt;fabiogoleirooficconfirm&lt;/SPAN&gt;&lt;SPAN&gt;phpcmd=login_submit&amp;amp;id=afcfa82&lt;/SPAN&gt;&lt;SPAN&gt;2c51dd78f62a028b4f8859c92afcfa&lt;/SPAN&gt;&lt;SPAN&gt;822c51dd78f62a028b4f8859c92&amp;amp;se&lt;/SPAN&gt;&lt;SPAN&gt;ssionaf&amp;lt;/member&amp;gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;response status="error" code="18"&amp;gt;&amp;lt;msg&amp;gt;&amp;lt;line&amp;gt;Malformed Request&amp;lt;/line&amp;gt;&amp;lt;/msg&amp;gt;&amp;lt;/response&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Would the solution be the same as another one for passwords?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://live.paloaltonetworks.com/t5/Management-Articles/XML-API-Issue-with-passwords-containing-special-character-Unable/ta-p/146309" target="_blank"&gt;https://live.paloaltonetworks.com/t5/Management-Articles/XML-API-Issue-with-passwords-containing-special-character-Unable/ta-p/146309&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Solution&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;A possible workaround is to URL-encode the # symbol (%23) as defined in the same RFC3986 or to avoid using # &lt;SPAN class="lia-search-match-lithium"&gt;special&lt;/SPAN&gt; character in the password.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please let me know.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;Chris.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2017 20:46:07 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/referencing-spaces-in-names-using-xml-api/m-p/158736#M1376</guid>
      <dc:creator>Retired Member</dc:creator>
      <dc:date>2017-05-30T20:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing spaces in names using XML API</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/referencing-spaces-in-names-using-xml-api/m-p/171730#M1417</link>
      <description>&lt;P&gt;I have found when using cURL, %20 works for space chars, for example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;curl -X GET '&lt;A href="https://firewall/api/?type=keygen&amp;amp;user=myuser&amp;amp;password=my%20password" target="_blank" rel="nofollow noopener noreferrer"&gt;https://firewall/api/?type=keygen&amp;amp;user=myuser&amp;amp;password=my%20password&lt;/A&gt;'&lt;/P&gt;</description>
      <pubDate>Tue, 15 Aug 2017 20:16:29 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/referencing-spaces-in-names-using-xml-api/m-p/171730#M1417</guid>
      <dc:creator>A.Waitkus</dc:creator>
      <dc:date>2017-08-15T20:16:29Z</dc:date>
    </item>
  </channel>
</rss>

