<?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: Transfer File to SAS Content Server using Script (Error: unsupported media type) in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Transfer-File-to-SAS-Content-Server-using-Script-Error/m-p/962312#M375078</link>
    <description>&lt;P&gt;Just to update , we were able to transfer the file using curl command.&lt;/P&gt;</description>
    <pubDate>Thu, 20 Mar 2025 03:32:36 GMT</pubDate>
    <dc:creator>des2</dc:creator>
    <dc:date>2025-03-20T03:32:36Z</dc:date>
    <item>
      <title>Transfer File to SAS Content Server using Script (Error: unsupported media type)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Transfer-File-to-SAS-Content-Server-using-Script-Error/m-p/961868#M374953</link>
      <description>&lt;P&gt;&lt;FONT size="2"&gt;Hi All,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;I am trying to transfer/upload a file to SAS Content Server specifically to&amp;nbsp;/SASContentServer/repository/default/sasdav/Products/SASRiskGovernanceFramework/RiskGovFrwkMid-Tier/rmc/Resources using proc http as below:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;%let SASContentServer = /SASContentServer/repository/default/sasdav/Products/SASRiskGovernanceFramework/RiskGovFrwkMid-Tier/rmc/Resources;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;%let webdav_url = &amp;amp;rgf_protocol.://&amp;amp;rgf_host.:&amp;amp;rgf_port.&amp;amp;SASContentServer.;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;%put &amp;amp;=webdav_url;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;filename in_file '/sasdata/json/test.json';&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;filename out_file '/sasdata/json/SASContent_log.txt';&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;&lt;FONT size="2"&gt;proc http&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size="2"&gt;&amp;nbsp; &amp;nbsp;url="&amp;amp;webdav_url."&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size="2"&gt;&amp;nbsp; &amp;nbsp;method="PUT"&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size="2"&gt;&amp;nbsp; &amp;nbsp;in=in_file&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size="2"&gt;&amp;nbsp; &amp;nbsp;out=out_file&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/* Log or response file */&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size="2"&gt;&amp;nbsp; &amp;nbsp;ct="application/json"&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;SPAN&gt; http_tokenauth;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size="2"&gt;run;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size="2"&gt;However, I am getting&amp;nbsp;415 unsupported media type in the logs. Any idea on how to go about this? Or is there any other way on how I can upload files to SAS Content Server repository automatically? Appreciate any feedback on this. Thank you.&lt;/FONT&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 14 Mar 2025 13:36:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Transfer-File-to-SAS-Content-Server-using-Script-Error/m-p/961868#M374953</guid>
      <dc:creator>des2</dc:creator>
      <dc:date>2025-03-14T13:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer File to SAS Content Server using Script (Error: unsupported media type)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Transfer-File-to-SAS-Content-Server-using-Script-Error/m-p/961879#M374954</link>
      <description>&lt;P&gt;Hi Des2,&lt;BR /&gt;&lt;BR /&gt;Have you tried to add&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;+json&lt;/STRONG&gt; to the content type header? Like in the example below:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="cs12C22DB"&gt;ct="application/vnd.sas.models.project&lt;/SPAN&gt;&lt;SPAN class="csFF23A102"&gt;+json"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="csFF23A102"&gt;Kind Regards&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2025 14:17:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Transfer-File-to-SAS-Content-Server-using-Script-Error/m-p/961879#M374954</guid>
      <dc:creator>MIPELI</dc:creator>
      <dc:date>2025-03-14T14:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer File to SAS Content Server using Script (Error: unsupported media type)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Transfer-File-to-SAS-Content-Server-using-Script-Error/m-p/961883#M374955</link>
      <description>&lt;P&gt;Hi Mipeli,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the reply. I've only tried /vnd.sas.collection+json because I am also not sure what to put.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've tried what you suggested but it's still the same.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="des2_0-1741962554065.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/105433iCCD2901FF233151E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="des2_0-1741962554065.png" alt="des2_0-1741962554065.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2025 14:30:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Transfer-File-to-SAS-Content-Server-using-Script-Error/m-p/961883#M374955</guid>
      <dc:creator>des2</dc:creator>
      <dc:date>2025-03-14T14:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer File to SAS Content Server using Script (Error: unsupported media type)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Transfer-File-to-SAS-Content-Server-using-Script-Error/m-p/962005#M375007</link>
      <description>&lt;P&gt;Hi&lt;SPAN&gt;&amp;nbsp;Des2&lt;/SPAN&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This is the official, registered content types.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="cs1FD4943"&gt;&lt;A href="https://www.iana.org/assignments/media-types/media-types.xhtml#application" target="_blank"&gt;https://www.iana.org/assignments/media-types/media-types.xhtml#application&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="cs1FD4943"&gt;Kind Regards,&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Mar 2025 13:46:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Transfer-File-to-SAS-Content-Server-using-Script-Error/m-p/962005#M375007</guid>
      <dc:creator>MIPELI</dc:creator>
      <dc:date>2025-03-17T13:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer File to SAS Content Server using Script (Error: unsupported media type)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Transfer-File-to-SAS-Content-Server-using-Script-Error/m-p/962153#M375035</link>
      <description>Hi Mipeli,&lt;BR /&gt;&lt;BR /&gt;Noted on this. Will take a look and try at my side. Thanks.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Des</description>
      <pubDate>Wed, 19 Mar 2025 01:07:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Transfer-File-to-SAS-Content-Server-using-Script-Error/m-p/962153#M375035</guid>
      <dc:creator>des2</dc:creator>
      <dc:date>2025-03-19T01:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer File to SAS Content Server using Script (Error: unsupported media type)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Transfer-File-to-SAS-Content-Server-using-Script-Error/m-p/962312#M375078</link>
      <description>&lt;P&gt;Just to update , we were able to transfer the file using curl command.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Mar 2025 03:32:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Transfer-File-to-SAS-Content-Server-using-Script-Error/m-p/962312#M375078</guid>
      <dc:creator>des2</dc:creator>
      <dc:date>2025-03-20T03:32:36Z</dc:date>
    </item>
  </channel>
</rss>

