<?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: PROC HTTP POST &amp;gt;&amp;gt; Missing Boundary Header in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/PROC-HTTP-POST-gt-gt-Missing-Boundary-Header/m-p/966768#M83992</link>
    <description>&lt;P&gt;looks like multipart form data isn't yet supported&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SAS-Procedures/multipart-form-data-REST-API-POST-in-PROC-HTTP-failing/td-p/325284" target="_blank" rel="noopener"&gt;https://communities.sas.com/t5/SAS-Procedures/multipart-form-data-REST-API-POST-in-PROC-HTTP-failing/td-p/325284&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;EDIT:&amp;nbsp; catching up, indeed it is actually supported in 2025&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/v_063/proc/p10hyllh9kzzwxn1juthxahne5vp.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/v_063/proc/p10hyllh9kzzwxn1juthxahne5vp.htm&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 17 May 2025 23:18:51 GMT</pubDate>
    <dc:creator>AllanBowe</dc:creator>
    <dc:date>2025-05-17T23:18:51Z</dc:date>
    <item>
      <title>PROC HTTP POST &gt;&gt; Missing Boundary Header</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-HTTP-POST-gt-gt-Missing-Boundary-Header/m-p/871227#M82652</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to post&amp;nbsp;zipped&amp;nbsp; XPT files to a URL using the code below...&lt;/P&gt;&lt;P&gt;But the output file tells me that I am - "Missing boundary header", hence end up with a 400 Bad Request.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what I see when I create an output file to capture the response from my PROC. I know my macro variable boundary resolves because I see it from my %PUT in the code.&lt;/P&gt;&lt;P&gt;What am I "missing" here ? Help appreciated.&lt;/P&gt;&lt;P&gt;&lt;A href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4" target="_blank" rel="noopener"&gt;@ChrisHemedinger&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;- any insight ? Thanks in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="agno3_0-1682100164741.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/83023iD8669B3D42CB7566/image-size/medium?v=v2&amp;amp;px=400" role="button" title="agno3_0-1682100164741.png" alt="agno3_0-1682100164741.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;filename XptFile "../dataraw/new_zip.zip";

/* Set the authorization header */
%let auth_header = Authorization=Bearer &amp;amp;ACCESS_TOKEN;
&lt;BR /&gt;/* Set boundary */
%let boundary=%sysfunc(uuidgen());&lt;BR /&gt;   %put &amp;amp;boundary.;

/* Make the HTTP PUT request */
filename response temp;
proc http
  method="POST"
  url="&amp;amp;base_uri/repository/container/&amp;amp;containerAID/&amp;amp;version/upload/Raw Data"
  in=XptFile
  out=response;  
  headers 'Authorization'="Bearer &amp;amp;ACCESS_TOKEN"; 
  headers 'Content-Type'="multipart/form-data" 'boundary' = "&amp;amp;boundary.";
  run;

%put &amp;amp;SYS_PROCHTTP_STATUS_CODE.;
%put &amp;amp;SYS_PROCHTTP_STATUS_PHRASE.;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2023 18:07:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-HTTP-POST-gt-gt-Missing-Boundary-Header/m-p/871227#M82652</guid>
      <dc:creator>agno3</dc:creator>
      <dc:date>2023-04-21T18:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: PROC HTTP POST &gt;&gt; Missing Boundary Header</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-HTTP-POST-gt-gt-Missing-Boundary-Header/m-p/966768#M83992</link>
      <description>&lt;P&gt;looks like multipart form data isn't yet supported&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SAS-Procedures/multipart-form-data-REST-API-POST-in-PROC-HTTP-failing/td-p/325284" target="_blank" rel="noopener"&gt;https://communities.sas.com/t5/SAS-Procedures/multipart-form-data-REST-API-POST-in-PROC-HTTP-failing/td-p/325284&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;EDIT:&amp;nbsp; catching up, indeed it is actually supported in 2025&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/v_063/proc/p10hyllh9kzzwxn1juthxahne5vp.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/v_063/proc/p10hyllh9kzzwxn1juthxahne5vp.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 17 May 2025 23:18:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-HTTP-POST-gt-gt-Missing-Boundary-Header/m-p/966768#M83992</guid>
      <dc:creator>AllanBowe</dc:creator>
      <dc:date>2025-05-17T23:18:51Z</dc:date>
    </item>
  </channel>
</rss>

