<?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: Error 400 using download link from embedded code in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-400-using-download-link-from-embedded-code/m-p/685608#M30847</link>
    <description>&lt;P&gt;I did add method = "GET" in my last test, does that need to be there?&lt;/P&gt;</description>
    <pubDate>Fri, 19 May 2023 19:13:44 GMT</pubDate>
    <dc:creator>terryz</dc:creator>
    <dc:date>2023-05-19T19:13:44Z</dc:date>
    <item>
      <title>Error 400 using download link from embedded code</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-400-using-download-link-from-embedded-code/m-p/685308#M30840</link>
      <description>&lt;P&gt;I have an embedded piece of code that once upon a time worked before TLS v1 was deprecated.&amp;nbsp; Note the URL download link in the subject line above was modified to protect the file.&amp;nbsp; The unmodified link works fine with Chrome and Edge as the client.&amp;nbsp; I have been trying to modify the code in my embedded application to use TLS v1.2 to make it work again.&amp;nbsp; &amp;nbsp;Below is the code snippet that I am trying to modify.&amp;nbsp; I am guessing my header {} settings are incorrect.&amp;nbsp; Below the code is the html response I get back from Dropbox - basically error 400.&amp;nbsp; &amp;nbsp;Do I need to create my own agent to do this or did I not put in the correct header {} information?&amp;nbsp; I am using the typical Edge and Chrome header for 'Agent'...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Code:&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;local&lt;/SPAN&gt; &lt;SPAN&gt;https&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;require&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"ssl.https"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;local&lt;/SPAN&gt; &lt;SPAN&gt;ltn12&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;require&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"ltn12"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;local&lt;/SPAN&gt; &lt;SPAN&gt;options&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; {}&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;local&lt;/SPAN&gt; &lt;SPAN&gt;fileMode&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;isbinary&lt;/SPAN&gt; &lt;SPAN&gt;and&lt;/SPAN&gt; &lt;SPAN&gt;"wb" &lt;/SPAN&gt;&lt;SPAN&gt;or&lt;/SPAN&gt; &lt;SPAN&gt;"w"&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;BR /&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;f&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;io&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;open&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;fulllocalpath&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;fileMode&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;if&lt;/SPAN&gt; &lt;SPAN&gt;not&lt;/SPAN&gt; &lt;SPAN&gt;f&lt;/SPAN&gt; &lt;SPAN&gt;then&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;resultstr&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;"Failed to open local file for writing:" &lt;/SPAN&gt;&lt;SPAN&gt;..&lt;/SPAN&gt; &lt;SPAN&gt;fulllocalpath&lt;/SPAN&gt; &lt;SPAN&gt;..&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;\r&lt;/SPAN&gt;&lt;SPAN&gt;" &lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;return&lt;/SPAN&gt; &lt;SPAN&gt;false&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;nil&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;nil&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;resultstr&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;end&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;BR /&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;options&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;url&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;rawname&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;sink&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;ltn12&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;sink&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;file&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;f&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;protocol&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;"tlsv1_2"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;headers&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; {&amp;nbsp; &amp;nbsp; --IS THERE SOMETHING WRONG HERE???&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [&lt;/SPAN&gt;&lt;SPAN&gt;"Host"&lt;/SPAN&gt;&lt;SPAN&gt;] &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;"&lt;A href="http://www.dropbox.com" target="_blank" rel="noopener"&gt;www.dropbox.com&lt;/A&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [&lt;/SPAN&gt;&lt;SPAN&gt;"User-Agent"&lt;/SPAN&gt;&lt;SPAN&gt;] &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.190 Safari/537.36"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [&lt;/SPAN&gt;&lt;SPAN&gt;"Accept"&lt;/SPAN&gt;&lt;SPAN&gt;] &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;"*/*"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [&lt;/SPAN&gt;&lt;SPAN&gt;"Referer"&lt;/SPAN&gt;&lt;SPAN&gt;] &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;"&lt;A href="https://www.dropbox.com/" target="_blank" rel="noopener"&gt;https://www.dropbox.com/&lt;/A&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [&lt;/SPAN&gt;&lt;SPAN&gt;"Accept-Encoding"&lt;/SPAN&gt;&lt;SPAN&gt;] &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;"gzip, deflate, br"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [&lt;/SPAN&gt;&lt;SPAN&gt;"Connection"&lt;/SPAN&gt;&lt;SPAN&gt;] &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;"keep-alive"&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Here is the html response back from Dropbox:&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;lt;.DOCTYPE html&amp;gt; &amp;lt;html&amp;gt; &amp;lt;head&amp;gt;&amp;lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&amp;gt; &amp;lt;meta name="viewport" content="width=device-width, initial-scale=1" /&amp;gt; &amp;lt;title&amp;gt;Dropbox - 400&amp;lt;/title&amp;gt; &amp;lt;link href="&lt;A href="https://cfl.dropboxstatic.com/static/metaserver/static/css/error.css" target="_blank" rel="noopener"&gt;https://cfl.dropboxstatic.com/static/metaserver/static/css/error.css&lt;/A&gt;" rel="stylesheet" type="text/css"/&amp;gt; &amp;lt;link rel="shortcut icon" href="&lt;A href="https://cfl.dropboxstatic.com/static/images/favicon.ico" target="_blank" rel="noopener"&gt;https://cfl.dropboxstatic.com/static/images/favicon.ico&lt;/A&gt;"/&amp;gt; &amp;lt;/head&amp;gt; &amp;lt;body&amp;gt; &amp;lt;div class="figure"&amp;gt; &amp;lt;img src="&lt;A href="https://assets.dropbox.com/www/en-us/illustrations/spot/target-miss.svg" target="_blank" rel="noopener"&gt;https://assets.dropbox.com/www/en-us/illustrations/spot/target-miss.svg&lt;/A&gt;" alt="Error: 400"/&amp;gt; &amp;lt;/div&amp;gt; &amp;lt;div id="errorbox"&amp;gt; &amp;lt;h1&amp;gt;Error (400)&amp;lt;/h1&amp;gt;Something went wrong. Don't worry, your files are still safe and the Dropbox team has been notified. Check out our &amp;lt;a href="&lt;A href="https://status.dropbox.com" target="_blank" rel="noopener"&gt;https://status.dropbox.com&lt;/A&gt;"&amp;gt;Status Page&amp;lt;/a&amp;gt; to see if there is a known incident, our &amp;lt;a href="&lt;A href="https://www.dropbox.com/help" target="_blank" rel="noopener"&gt;https://www.dropbox.com/help&lt;/A&gt;"&amp;gt;Help Center&amp;lt;/a&amp;gt; and &amp;lt;a href="&lt;A href="https://forums.dropbox.com" target="_blank" rel="noopener"&gt;https://forums.dropbox.com&lt;/A&gt;"&amp;gt;forums&amp;lt;/a&amp;gt; for help, or head back to &amp;lt;a href="&lt;A href="https://www.dropbox.com/home" target="_blank" rel="noopener"&gt;https://www.dropbox.com/home&lt;/A&gt;"&amp;gt;home&amp;lt;/a&amp;gt;. &amp;lt;/div&amp;gt; &amp;lt;/body&amp;gt; &amp;lt;/html&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 19 May 2023 14:03:46 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-400-using-download-link-from-embedded-code/m-p/685308#M30840</guid>
      <dc:creator>terryz</dc:creator>
      <dc:date>2023-05-19T14:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: Error 400 using download link from embedded code</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-400-using-download-link-from-embedded-code/m-p/685542#M30844</link>
      <description>&lt;P&gt;Hi there!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since you are receiving an HTML response, we can definitely rule out issues with TLS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have been unable to replicate the issue you have described. Is it possible you could enable a more verbose output in your network client? It would be helpful if we could get a better view into the raw request that the client is making.&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2023 13:33:30 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-400-using-download-link-from-embedded-code/m-p/685542#M30844</guid>
      <dc:creator>DB-Des</dc:creator>
      <dc:date>2023-05-19T13:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: Error 400 using download link from embedded code</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-400-using-download-link-from-embedded-code/m-p/685598#M30845</link>
      <description>&lt;P&gt;I tired adding code to get the https request, without luck.&amp;nbsp; Instead, A gathered a WireShark trace, which you can access here:&amp;nbsp;&lt;A title="WireShark pcap file" href="https://www.dropbox.com/s/3v10bjapy7evnm6/iplogging.pcap?dl=0" target="_self"&gt;https://www.dropbox.com/s/3v10bjapy7evnm6/iplogging.pcap?dl=0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please review and let me know your thoughts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The trace was captured using the following header (same as original, but with the addition of the 'GET' method.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;-- Set the options for the HTTPS request&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;local&lt;/SPAN&gt; &lt;SPAN&gt;options&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;url&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;rawname&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;protocol&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;"tlsv1_2"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;sink&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;ltn12&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;sink&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;file&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;f&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;method&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;"GET"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;-- Add the method field to specify the HTTP method&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;headers&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [&lt;/SPAN&gt;&lt;SPAN&gt;"Host"&lt;/SPAN&gt;&lt;SPAN&gt;] &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;"&lt;A href="http://www.dropbox.com" target="_blank"&gt;www.dropbox.com&lt;/A&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [&lt;/SPAN&gt;&lt;SPAN&gt;"User-Agent"&lt;/SPAN&gt;&lt;SPAN&gt;] &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [&lt;/SPAN&gt;&lt;SPAN&gt;"Accept"&lt;/SPAN&gt;&lt;SPAN&gt;] &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;"*/*"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [&lt;/SPAN&gt;&lt;SPAN&gt;"Referer"&lt;/SPAN&gt;&lt;SPAN&gt;] &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;"&lt;A href="https://www.dropbox.com/" target="_blank"&gt;https://www.dropbox.com/&lt;/A&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [&lt;/SPAN&gt;&lt;SPAN&gt;"Accept-Encoding"&lt;/SPAN&gt;&lt;SPAN&gt;] &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;"gzip, deflate, br"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [&lt;/SPAN&gt;&lt;SPAN&gt;"Connection"&lt;/SPAN&gt;&lt;SPAN&gt;] &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;"keep-alive"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 19 May 2023 17:40:53 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-400-using-download-link-from-embedded-code/m-p/685598#M30845</guid>
      <dc:creator>terryz</dc:creator>
      <dc:date>2023-05-19T17:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: Error 400 using download link from embedded code</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-400-using-download-link-from-embedded-code/m-p/685600#M30846</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1706213"&gt;@terryz&lt;/a&gt; Thanks for sharing that, though unfortunately I don't think that we'd be able to determine the issue from that; a 400 like this should generally indicate that there was something incorrect about the HTTP request, but the request data would be encrypted in that capture so we couldn't read it anyway.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perhaps instead we can try to approach this another way. Can you reproduce the issue with another client where you can inspect the actual requests that get sent? For example, I just tried to replicate the request you're sending using curl with a test shared link of my own, but it worked successfully:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;curl -v --tlsv1.2 --http1.1 -X GET -L "https://www.dropbox.com/s/9kkiqvfe457hrs0/test.csv?dl=1" -o out.csv \
	-H "Host: www.dropbox.com" \
	-H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36" \
	-H "Accept: */*" \
	-H "Referer: https://www.dropbox.com/" \
	-H "Accept-Encoding: gzip, deflate, br" \
	-H "Connection: keep-alive" &lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(I'm guessing you're using HTTP 1.1, but that --http1.1 option can be changed to --http2 to match if you are using HTTP 2.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, you could try your code with my test shared link to see if your code works with that. If it does, it would indicate an issue with the particular shared link you're using and not the code itself.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By the way, I see you're mimicking a web browser by sending those "User-Agent" and "Referer" headers; that may not necessarily cause issues, but I can't guarantee it. Further, given that those aren't necessary, it may be good to remove them.&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2023 18:25:22 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-400-using-download-link-from-embedded-code/m-p/685600#M30846</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-05-19T18:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: Error 400 using download link from embedded code</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-400-using-download-link-from-embedded-code/m-p/685608#M30847</link>
      <description>&lt;P&gt;I did add method = "GET" in my last test, does that need to be there?&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2023 19:13:44 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-400-using-download-link-from-embedded-code/m-p/685608#M30847</guid>
      <dc:creator>terryz</dc:creator>
      <dc:date>2023-05-19T19:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: Error 400 using download link from embedded code</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-400-using-download-link-from-embedded-code/m-p/685616#M30848</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1706213"&gt;@terryz&lt;/a&gt; The HTTP GET method is correct for this scenario. It's often the default for HTTP clients, so even when you don't specify it, clients will usually use GET automatically.&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2023 19:23:47 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-400-using-download-link-from-embedded-code/m-p/685616#M30848</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-05-19T19:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Error 400 using download link from embedded code</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-400-using-download-link-from-embedded-code/m-p/685960#M30856</link>
      <description>&lt;P&gt;HI Greg:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you send me an exact example of what the HTTP request should look like?&lt;/P&gt;&lt;P&gt;I may be able to approach the problem in a different way.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 11:52:49 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-400-using-download-link-from-embedded-code/m-p/685960#M30856</guid>
      <dc:creator>terryz</dc:creator>
      <dc:date>2023-05-22T11:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: Error 400 using download link from embedded code</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-400-using-download-link-from-embedded-code/m-p/685968#M30858</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1706213"&gt;@terryz&lt;/a&gt; You can run the curl example I shared in&amp;nbsp;my earlier comment to see how the requests are formatted. (There are some redirects involved, but curl will handle that automatically since "-L" is specified.)&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 12:20:18 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-400-using-download-link-from-embedded-code/m-p/685968#M30858</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-05-22T12:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: Error 400 using download link from embedded code</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-400-using-download-link-from-embedded-code/m-p/685983#M30860</link>
      <description>&lt;P&gt;I ran he following example in curl, note it fails using the original dropbox link ?I sent to FAULTMSG.CSV - why:&lt;/P&gt;&lt;P&gt;C:\Users\tzarnowski&amp;gt;curl -v --tlsv1.2 --http1.1 -X GET -L "&lt;A href="https://www.dropbox.com/s/y5jlwu5nfr3s8xe/FAULTMSG.CSV?dl=1" target="_blank"&gt;https://www.dropbox.com/s/y5jlwu5nfr3s8xe/FAULTMSG.CSV?dl=1&lt;/A&gt;" -o out.csv -H "Host: &lt;A href="http://www.dropbox.com" target="_blank"&gt;www.dropbox.com&lt;/A&gt;" -H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36" -H "Accept: */*" -H "Referer: &lt;A href="https://www.dropbox.com/" target="_blank"&gt;https://www.dropbox.com/&lt;/A&gt;" -H "Accept-Encoding: gzip, deflate, br" -H "Connection: keep-alive"&lt;BR /&gt;Note: Unnecessary use of -X or --request, GET is already inferred.&lt;BR /&gt;% Total % Received % Xferd Average Speed Time Time Time Current&lt;BR /&gt;Dload Upload Total Spent Left Speed&lt;BR /&gt;0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Trying 162.125.4.18:443...&lt;BR /&gt;* Connected to &lt;A href="http://www.dropbox.com" target="_blank"&gt;www.dropbox.com&lt;/A&gt; (162.125.4.18) port 443 (#0)&lt;BR /&gt;* schannel: disabled automatic use of client certificate&lt;BR /&gt;* ALPN: offers http/1.1&lt;BR /&gt;* ALPN: server accepted http/1.1&lt;BR /&gt;* using HTTP/1.1&lt;BR /&gt;&amp;gt; GET /s/y5jlwu5nfr3s8xe/FAULTMSG.CSV?dl=1 HTTP/1.1&lt;BR /&gt;&amp;gt; Host: &lt;A href="http://www.dropbox.com" target="_blank"&gt;www.dropbox.com&lt;/A&gt;&lt;BR /&gt;&amp;gt; User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36&lt;BR /&gt;&amp;gt; Accept: */*&lt;BR /&gt;&amp;gt; Referer: &lt;A href="https://www.dropbox.com/" target="_blank"&gt;https://www.dropbox.com/&lt;/A&gt;&lt;BR /&gt;&amp;gt; Accept-Encoding: gzip, deflate, br&lt;BR /&gt;&amp;gt; Connection: keep-alive&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;lt; HTTP/1.1 302 Found&lt;BR /&gt;&amp;lt; Content-Security-Policy: style-src https://* 'unsafe-inline' 'unsafe-eval' ; form-action 'self' &lt;A href="https://www.dropbox.com/" target="_blank"&gt;https://www.dropbox.com/&lt;/A&gt; &lt;A href="https://dl-web.dropbox.com/" target="_blank"&gt;https://dl-web.dropbox.com/&lt;/A&gt; &lt;A href="https://photos.dropbox.com/" target="_blank"&gt;https://photos.dropbox.com/&lt;/A&gt; &lt;A href="https://paper.dropbox.com/" target="_blank"&gt;https://paper.dropbox.com/&lt;/A&gt; &lt;A href="https://showcase.dropbox.com/" target="_blank"&gt;https://showcase.dropbox.com/&lt;/A&gt; &lt;A href="https://www.hellofax.com/" target="_blank"&gt;https://www.hellofax.com/&lt;/A&gt; &lt;A href="https://app.hellofax.com/" target="_blank"&gt;https://app.hellofax.com/&lt;/A&gt; &lt;A href="https://www.hellosign.com/" target="_blank"&gt;https://www.hellosign.com/&lt;/A&gt; &lt;A href="https://app.hellosign.com/" target="_blank"&gt;https://app.hellosign.com/&lt;/A&gt; &lt;A href="https://docsend.com/" target="_blank"&gt;https://docsend.com/&lt;/A&gt; &lt;A href="https://www.docsend.com/" target="_blank"&gt;https://www.docsend.com/&lt;/A&gt; &lt;A href="https://help.dropbox.com/" target="_blank"&gt;https://help.dropbox.com/&lt;/A&gt; &lt;A href="https://navi.dropbox.jp/" target="_blank"&gt;https://navi.dropbox.jp/&lt;/A&gt; &lt;A href="https://a.sprig.com/" target="_blank"&gt;https://a.sprig.com/&lt;/A&gt; &lt;A href="https://selfguidedlearning.dropboxbusiness.com/" target="_blank"&gt;https://selfguidedlearning.dropboxbusiness.com/&lt;/A&gt; &lt;A href="https://instructorledlearning.dropboxbusiness.com/" target="_blank"&gt;https://instructorledlearning.dropboxbusiness.com/&lt;/A&gt; &lt;A href="https://sales.dropboxbusiness.com/" target="_blank"&gt;https://sales.dropboxbusiness.com/&lt;/A&gt; &lt;A href="https://accounts.google.com/" target="_blank"&gt;https://accounts.google.com/&lt;/A&gt; &lt;A href="https://api.login.yahoo.com/" target="_blank"&gt;https://api.login.yahoo.com/&lt;/A&gt; &lt;A href="https://login.yahoo.com/" target="_blank"&gt;https://login.yahoo.com/&lt;/A&gt; &lt;A href="https://experience.dropbox.com/" target="_blank"&gt;https://experience.dropbox.com/&lt;/A&gt; &lt;A href="https://pal-test.adyen.com" target="_blank"&gt;https://pal-test.adyen.com&lt;/A&gt; &lt;A href="https://2e83413d8036243b-Dropbox-pal-live.adyenpayments.com/" target="_blank"&gt;https://2e83413d8036243b-Dropbox-pal-live.adyenpayments.com/&lt;/A&gt; ; report-uri &lt;A href="https://www.dropbox.com/csp_log?policy_name=metaserver-whitelist" target="_blank"&gt;https://www.dropbox.com/csp_log?policy_name=metaserver-whitelist&lt;/A&gt; ; default-src &lt;A href="https://www.dropbox.com/playlist/" target="_blank"&gt;https://www.dropbox.com/playlist/&lt;/A&gt; &lt;A href="https://www.dropbox.com/v/s/playlist/" target="_blank"&gt;https://www.dropbox.com/v/s/playlist/&lt;/A&gt; https://*.dropboxusercontent.com/p/hls_master_playlist/ https://*.dropboxusercontent.com/p/hls_playlist/ ; connect-src https://* ws://127.0.0.1:*/ws ; worker-src &lt;A href="https://www.dropbox.com/static/serviceworker/" target="_blank"&gt;https://www.dropbox.com/static/serviceworker/&lt;/A&gt; blob: ; script-src 'unsafe-eval' &lt;A href="https://www.dropbox.com/static/api/" target="_blank"&gt;https://www.dropbox.com/static/api/&lt;/A&gt; &lt;A href="https://www.dropbox.com/page_success/" target="_blank"&gt;https://www.dropbox.com/page_success/&lt;/A&gt; &lt;A href="https://cfl.dropboxstatic.com/static/" target="_blank"&gt;https://cfl.dropboxstatic.com/static/&lt;/A&gt; &lt;A href="https://www.dropboxstatic.com/static/" target="_blank"&gt;https://www.dropboxstatic.com/static/&lt;/A&gt; &lt;A href="https://accounts.google.com/gsi/client" target="_blank"&gt;https://accounts.google.com/gsi/client&lt;/A&gt; &lt;A href="https://canny.io/sdk.js" target="_blank"&gt;https://canny.io/sdk.js&lt;/A&gt; 'nonce-LxuDkSxDrHQIhSAbz8B7DzKtWeY=' ; base-uri 'self' ; child-src &lt;A href="https://www.dropbox.com/static/serviceworker/" target="_blank"&gt;https://www.dropbox.com/static/serviceworker/&lt;/A&gt; blob: ; object-src 'self' &lt;A href="https://cfl.dropboxstatic.com/static/" target="_blank"&gt;https://cfl.dropboxstatic.com/static/&lt;/A&gt; &lt;A href="https://www.dropboxstatic.com/static/" target="_blank"&gt;https://www.dropboxstatic.com/static/&lt;/A&gt; ; frame-ancestors 'self' ; frame-src https://* carousel: dbapi-6: dbapi-7: dbapi-8: dropbox-client: itms-apps: itms-appss: ; img-src https://* data: blob: ; media-src https://* blob: ; font-src https://* data:&lt;BR /&gt;&amp;lt; Content-Security-Policy: report-uri &lt;A href="https://www.dropbox.com/csp_log?policy_name=metaserver-dynamic" target="_blank"&gt;https://www.dropbox.com/csp_log?policy_name=metaserver-dynamic&lt;/A&gt; ; script-src 'unsafe-eval' 'strict-dynamic' 'nonce-LxuDkSxDrHQIhSAbz8B7DzKtWeY=' 'nonce-zBujYfSPIVul0nCMhmjaCTh2Jt8='&lt;BR /&gt;&amp;lt; Content-Type: text/html; charset=utf-8&lt;BR /&gt;&amp;lt; Location: /s/dl/y5jlwu5nfr3s8xe/FAULTMSG.CSV&lt;BR /&gt;&amp;lt; Pragma: no-cache&lt;BR /&gt;&amp;lt; Referrer-Policy: strict-origin-when-cross-origin&lt;BR /&gt;&amp;lt; Set-Cookie: gvc=MjU5MjkxMzYzOTcwMzYwNjQ3NzU2MTA4Mzc2NDQ5MzQ0NDQwMTgx; Path=/; Expires=Sat, 20 May 2028 13:02:20 GMT; HttpOnly; Secure; SameSite=None&lt;BR /&gt;&amp;lt; Set-Cookie: t=DAyXLOMSKcjbZX3ChslTIs4P; Path=/; Domain=dropbox.com; Expires=Thu, 21 May 2026 13:02:20 GMT; HttpOnly; Secure; SameSite=None&lt;BR /&gt;&amp;lt; Set-Cookie: __Host-js_csrf=DAyXLOMSKcjbZX3ChslTIs4P; Path=/; Expires=Thu, 21 May 2026 13:02:20 GMT; Secure; SameSite=None&lt;BR /&gt;&amp;lt; Set-Cookie: __Host-ss=j8axqReYhY; Path=/; Expires=Thu, 21 May 2026 13:02:20 GMT; HttpOnly; Secure; SameSite=Strict&lt;BR /&gt;&amp;lt; Set-Cookie: locale=en; Path=/; Domain=dropbox.com; Expires=Sat, 20 May 2028 13:02:20 GMT&lt;BR /&gt;&amp;lt; X-Content-Type-Options: nosniff&lt;BR /&gt;&amp;lt; X-Frame-Options: SAMEORIGIN&lt;BR /&gt;&amp;lt; X-Permitted-Cross-Domain-Policies: none&lt;BR /&gt;&amp;lt; X-Robots-Tag: noindex, nofollow, noimageindex&lt;BR /&gt;&amp;lt; X-Xss-Protection: 1; mode=block&lt;BR /&gt;&amp;lt; Date: Mon, 22 May 2023 13:02:20 GMT&lt;BR /&gt;&amp;lt; Strict-Transport-Security: max-age=31536000; includeSubDomains&lt;BR /&gt;&amp;lt; Server: envoy&lt;BR /&gt;&amp;lt; Cache-Control: no-cache, no-store&lt;BR /&gt;&amp;lt; Content-Encoding: gzip&lt;BR /&gt;&amp;lt; Vary: Accept-Encoding&lt;BR /&gt;&amp;lt; X-Dropbox-Response-Origin: far_remote&lt;BR /&gt;&amp;lt; X-Dropbox-Request-Id: 94922619ce9e4dd790b3857b3ece7272&lt;BR /&gt;&amp;lt; Transfer-Encoding: chunked&lt;BR /&gt;&amp;lt;&lt;BR /&gt;* Ignoring the response-body&lt;BR /&gt;{ [48 bytes data]&lt;BR /&gt;100 37 0 37 0 0 128 0 --:--:-- --:--:-- --:--:-- 128&lt;BR /&gt;* Connection #0 to host &lt;A href="http://www.dropbox.com" target="_blank"&gt;www.dropbox.com&lt;/A&gt; left intact&lt;BR /&gt;* Issue another request to this URL: '&lt;A href="https://www.dropbox.com/s/dl/y5jlwu5nfr3s8xe/FAULTMSG.CSV" target="_blank"&gt;https://www.dropbox.com/s/dl/y5jlwu5nfr3s8xe/FAULTMSG.CSV&lt;/A&gt;'&lt;BR /&gt;* Found bundle for host: 0x1e652216ac0 [serially]&lt;BR /&gt;* Re-using existing connection #0 with host &lt;A href="http://www.dropbox.com" target="_blank"&gt;www.dropbox.com&lt;/A&gt;&lt;BR /&gt;&amp;gt; GET /s/dl/y5jlwu5nfr3s8xe/FAULTMSG.CSV HTTP/1.1&lt;BR /&gt;&amp;gt; Host: &lt;A href="http://www.dropbox.com" target="_blank"&gt;www.dropbox.com&lt;/A&gt;&lt;BR /&gt;&amp;gt; User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36&lt;BR /&gt;&amp;gt; Accept: */*&lt;BR /&gt;&amp;gt; Referer: &lt;A href="https://www.dropbox.com/" target="_blank"&gt;https://www.dropbox.com/&lt;/A&gt;&lt;BR /&gt;&amp;gt; Accept-Encoding: gzip, deflate, br&lt;BR /&gt;&amp;gt; Connection: keep-alive&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;lt; HTTP/1.1 302 Found&lt;BR /&gt;&amp;lt; Content-Security-Policy: sandbox&lt;BR /&gt;&amp;lt; Location: &lt;A href="https://ucf9fab352ae7acf48b9a3bdcf92.dl.dropboxusercontent.com/cd/0/get/B8h0yjnJ6oYV-TIlmsyGYsN8Xr66RaWCguHFlKjzPZ8fc7h7wQmUOZumls40XqPLIulsyHieE2J5iQIMiUf6Rt1-JtaZ2NrbpQAwUg_79GIsikZE5nRKWcVO4xCs2-iKD54Dae1Xyph_7vttjFVIaa2pYUcerpbEJ4HDMA3cW3x5IWZOj1ynpxoboeJGFOogISA/file?dl=1#" target="_blank"&gt;https://ucf9fab352ae7acf48b9a3bdcf92.dl.dropboxusercontent.com/cd/0/get/B8h0yjnJ6oYV-TIlmsyGYsN8Xr66RaWCguHFlKjzPZ8fc7h7wQmUOZumls40XqPLIulsyHieE2J5iQIMiUf6Rt1-JtaZ2NrbpQAwUg_79GIsikZE5nRKWcVO4xCs2-iKD54Dae1Xyph_7vttjFVIaa2pYUcerpbEJ4HDMA3cW3x5IWZOj1ynpxoboeJGFOogISA/file?dl=1#&lt;/A&gt;&lt;BR /&gt;&amp;lt; Referrer-Policy: strict-origin-when-cross-origin&lt;BR /&gt;&amp;lt; Set-Cookie: gvc=NTkyNzA4NDA3MDk1OTQ2OTY0NjIxNDQxNjEyODQyMDM1NDYyMjk%3D; expires=Sat, 20 May 2028 13:02:20 GMT; HttpOnly; Path=/; SameSite=None; Secure&lt;BR /&gt;&amp;lt; Set-Cookie: t=32mN4AJJyZphNSOFUWMKOpOS; Domain=dropbox.com; expires=Thu, 21 May 2026 13:02:20 GMT; HttpOnly; Path=/; SameSite=None; Secure&lt;BR /&gt;&amp;lt; Set-Cookie: __Host-js_csrf=32mN4AJJyZphNSOFUWMKOpOS; expires=Thu, 21 May 2026 13:02:20 GMT; Path=/; SameSite=None; Secure&lt;BR /&gt;&amp;lt; Set-Cookie: __Host-ss=pBbPy8XPV4; expires=Thu, 21 May 2026 13:02:20 GMT; HttpOnly; Path=/; SameSite=Strict; Secure&lt;BR /&gt;&amp;lt; Set-Cookie: locale=en; Domain=dropbox.com; expires=Sat, 20 May 2028 13:02:20 GMT; Path=/; SameSite=None; Secure&lt;BR /&gt;&amp;lt; X-Content-Type-Options: nosniff&lt;BR /&gt;&amp;lt; X-Frame-Options: DENY&lt;BR /&gt;&amp;lt; X-Permitted-Cross-Domain-Policies: none&lt;BR /&gt;&amp;lt; X-Xss-Protection: 1; mode=block&lt;BR /&gt;&amp;lt; Content-Type: text/html; charset=utf-8&lt;BR /&gt;&amp;lt; Accept-Encoding: identity,gzip&lt;BR /&gt;&amp;lt; Date: Mon, 22 May 2023 13:02:20 GMT&lt;BR /&gt;&amp;lt; Server: envoy&lt;BR /&gt;&amp;lt; Strict-Transport-Security: max-age=31536000; includeSubDomains&lt;BR /&gt;&amp;lt; Strict-Transport-Security: max-age=31536000; includeSubDomains&lt;BR /&gt;&amp;lt; Cache-Control: no-cache, no-store&lt;BR /&gt;&amp;lt; Content-Encoding: gzip&lt;BR /&gt;&amp;lt; Vary: Accept-Encoding&lt;BR /&gt;&amp;lt; X-Dropbox-Response-Origin: far_remote&lt;BR /&gt;&amp;lt; X-Dropbox-Request-Id: 8497494043f64814996dae65b7a5ce95&lt;BR /&gt;&amp;lt; Transfer-Encoding: chunked&lt;BR /&gt;&amp;lt;&lt;BR /&gt;* Ignoring the response-body&lt;BR /&gt;{ [350 bytes data]&lt;BR /&gt;100 333 0 333 0 0 553 0 --:--:-- --:--:-- --:--:-- 553&lt;BR /&gt;* Connection #0 to host &lt;A href="http://www.dropbox.com" target="_blank"&gt;www.dropbox.com&lt;/A&gt; left intact&lt;BR /&gt;* Issue another request to this URL: '&lt;A href="https://ucf9fab352ae7acf48b9a3bdcf92.dl.dropboxusercontent.com/cd/0/get/B8h0yjnJ6oYV-TIlmsyGYsN8Xr66RaWCguHFlKjzPZ8fc7h7wQmUOZumls40XqPLIulsyHieE2J5iQIMiUf6Rt1-JtaZ2NrbpQAwUg_79GIsikZE5nRKWcVO4xCs2-iKD54Dae1Xyph_7vttjFVIaa2pYUcerpbEJ4HDMA3cW3x5IWZOj1ynpxoboeJGFOogISA/file?dl=1" target="_blank"&gt;https://ucf9fab352ae7acf48b9a3bdcf92.dl.dropboxusercontent.com/cd/0/get/B8h0yjnJ6oYV-TIlmsyGYsN8Xr66RaWCguHFlKjzPZ8fc7h7wQmUOZumls40XqPLIulsyHieE2J5iQIMiUf6Rt1-JtaZ2NrbpQAwUg_79GIsikZE5nRKWcVO4xCs2-iKD54Dae1Xyph_7vttjFVIaa2pYUcerpbEJ4HDMA3cW3x5IWZOj1ynpxoboeJGFOogISA/file?dl=1&lt;/A&gt;'&lt;BR /&gt;* Trying 162.125.4.15:443...&lt;BR /&gt;* Connected to ucf9fab352ae7acf48b9a3bdcf92.dl.dropboxusercontent.com (162.125.4.15) port 443 (#1)&lt;BR /&gt;* schannel: disabled automatic use of client certificate&lt;BR /&gt;* ALPN: offers http/1.1&lt;BR /&gt;* ALPN: server accepted http/1.1&lt;BR /&gt;* using HTTP/1.1&lt;BR /&gt;&amp;gt; GET /cd/0/get/B8h0yjnJ6oYV-TIlmsyGYsN8Xr66RaWCguHFlKjzPZ8fc7h7wQmUOZumls40XqPLIulsyHieE2J5iQIMiUf6Rt1-JtaZ2NrbpQAwUg_79GIsikZE5nRKWcVO4xCs2-iKD54Dae1Xyph_7vttjFVIaa2pYUcerpbEJ4HDMA3cW3x5IWZOj1ynpxoboeJGFOogISA/file?dl=1 HTTP/1.1&lt;BR /&gt;&amp;gt; Host: ucf9fab352ae7acf48b9a3bdcf92.dl.dropboxusercontent.com&lt;BR /&gt;&amp;gt; User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36&lt;BR /&gt;&amp;gt; Accept: */*&lt;BR /&gt;&amp;gt; Referer: &lt;A href="https://www.dropbox.com/" target="_blank"&gt;https://www.dropbox.com/&lt;/A&gt;&lt;BR /&gt;&amp;gt; Accept-Encoding: gzip, deflate, br&lt;BR /&gt;&amp;gt; Connection: keep-alive&lt;BR /&gt;&amp;gt;&lt;BR /&gt;0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* schannel: failed to decrypt data, need more data&lt;BR /&gt;&amp;lt; HTTP/1.1 200 OK&lt;BR /&gt;&amp;lt; Accept-Ranges: bytes&lt;BR /&gt;&amp;lt; Cache-Control: max-age=60&lt;BR /&gt;&amp;lt; Content-Disposition: attachment; filename="FAULTMSG.CSV"; filename*=UTF-8''FAULTMSG.CSV&lt;BR /&gt;&amp;lt; Content-Security-Policy: sandbox&lt;BR /&gt;&amp;lt; Etag: 1681308133112497d&lt;BR /&gt;&amp;lt; Pragma: public&lt;BR /&gt;&amp;lt; Referrer-Policy: no-referrer&lt;BR /&gt;&amp;lt; Vary: Origin&lt;BR /&gt;&amp;lt; X-Content-Security-Policy: sandbox&lt;BR /&gt;&amp;lt; X-Content-Type-Options: nosniff&lt;BR /&gt;&amp;lt; X-Robots-Tag: noindex, nofollow, noimageindex&lt;BR /&gt;&amp;lt; X-Server-Response-Time: 192&lt;BR /&gt;&amp;lt; X-Webkit-Csp: sandbox&lt;BR /&gt;&amp;lt; Content-Type: application/binary&lt;BR /&gt;&amp;lt; Accept-Encoding: identity,gzip&lt;BR /&gt;&amp;lt; Date: Mon, 22 May 2023 13:02:20 GMT&lt;BR /&gt;&amp;lt; Server: envoy&lt;BR /&gt;&amp;lt; Strict-Transport-Security: max-age=31536000; includeSubDomains; preload&lt;BR /&gt;&amp;lt; Content-Length: 6848&lt;BR /&gt;&amp;lt; X-Dropbox-Response-Origin: far_remote&lt;BR /&gt;&amp;lt; X-Dropbox-Request-Id: 1dfba269edcd4785a07aff50ce3ea9ba&lt;BR /&gt;&amp;lt;&lt;BR /&gt;{ [6848 bytes data]&lt;BR /&gt;100 6848 100 6848 0 0 6830 0 0:00:01 0:00:01 --:--:-- 44467&lt;BR /&gt;* Connection #1 to host ucf9fab352ae7acf48b9a3bdcf92.dl.dropboxusercontent.com left intact&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 13:04:21 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-400-using-download-link-from-embedded-code/m-p/685983#M30860</guid>
      <dc:creator>terryz</dc:creator>
      <dc:date>2023-05-22T13:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: Error 400 using download link from embedded code</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-400-using-download-link-from-embedded-code/m-p/685991#M30862</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1706213"&gt;@terryz&lt;/a&gt; I see you are getting the two expected 302 responses, and then the final successful 200 response. When you say it fails, are you referring to the "schannel: failed to decrypt data, need more data" message? That doesn't occur for me, and I do get the expected 6848 bytes of data saved out when I try. Does the file get downloaded properly for you with this command?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In any case, it isn't resulting in a 400, so it appears this doesn't replicate the issue with your original code; it seems like the client in your original code is doing something differently that may be corrupting the request there.&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 13:16:22 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-400-using-download-link-from-embedded-code/m-p/685991#M30862</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-05-22T13:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: Error 400 using download link from embedded code</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-400-using-download-link-from-embedded-code/m-p/685997#M30863</link>
      <description>&lt;P&gt;yes, it was that error, but as it turns out the file still downloaded....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 13:28:11 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-400-using-download-link-from-embedded-code/m-p/685997#M30863</guid>
      <dc:creator>terryz</dc:creator>
      <dc:date>2023-05-22T13:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: Error 400 using download link from embedded code</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-400-using-download-link-from-embedded-code/m-p/685998#M30864</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1706213"&gt;@terryz&lt;/a&gt; Thanks for clarifying. Yes, that error would indicate something went wrong with the transfer, but it sounds like curl was able to recover and complete the download successfully. It may have just been a transient network issue. Regardless, it doesn't appear to reproduce the original 400 error code from your original code, so unfortunately this doesn't seem to be representative of the original issue.&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 13:32:56 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-400-using-download-link-from-embedded-code/m-p/685998#M30864</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-05-22T13:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: Error 400 using download link from embedded code</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-400-using-download-link-from-embedded-code/m-p/686000#M30865</link>
      <description>&lt;P&gt;Agreed...I am wondering if my luasec client is handling the redirects or not.&lt;/P&gt;&lt;P&gt;The client is using lusec.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 13:36:45 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-400-using-download-link-from-embedded-code/m-p/686000#M30865</guid>
      <dc:creator>terryz</dc:creator>
      <dc:date>2023-05-22T13:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: Error 400 using download link from embedded code</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-400-using-download-link-from-embedded-code/m-p/686017#M30867</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1706213"&gt;@terryz&lt;/a&gt; Given that the same link and headers work in another client, it does sound like your client is malforming the request somehow. Unfortunately we can't offer support for third party clients themselves, so I recommend referring to the documentation/support resources for that client for information on how to debug it. If you can get some more verbose output showing an issue on the Dropbox server side in particular though, please do share that so we can investigate.&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 14:23:13 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-400-using-download-link-from-embedded-code/m-p/686017#M30867</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-05-22T14:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: Error 400 using download link from embedded code</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-400-using-download-link-from-embedded-code/m-p/686018#M30868</link>
      <description>&lt;P&gt;Will do. thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 14:24:29 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-400-using-download-link-from-embedded-code/m-p/686018#M30868</guid>
      <dc:creator>terryz</dc:creator>
      <dc:date>2023-05-22T14:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: Error 400 using download link from embedded code</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-400-using-download-link-from-embedded-code/m-p/686048#M30869</link>
      <description>&lt;P&gt;I managed to get the headers, see the log below from the device:&lt;/P&gt;&lt;P&gt;May 22 15:50:51 err ALEOS_APPS_AAF-APPS: &amp;lt;UMONIoT&amp;gt; requestParams.method: GET &lt;A href="https://www.dropbox.com:443/s/y5jlwu5nfr3s8xe/FAULTMSG.CSV?dl=1" target="_blank"&gt;https://www.dropbox.com:443/s/y5jlwu5nfr3s8xe/FAULTMSG.CSV?dl=1&lt;/A&gt;&lt;BR /&gt;May 22 15:50:51 err ALEOS_APPS_AAF-APPS: &amp;lt;UMONIoT&amp;gt; Host: &lt;A href="http://www.dropbox.com" target="_blank"&gt;www.dropbox.com&lt;/A&gt;&lt;BR /&gt;May 22 15:50:51 err ALEOS_APPS_AAF-APPS: &amp;lt;UMONIoT&amp;gt; Accept: */*&lt;BR /&gt;May 22 15:50:51 err ALEOS_APPS_AAF-APPS: &amp;lt;UMONIoT&amp;gt; User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36&lt;BR /&gt;May 22 15:50:51 err ALEOS_APPS_AAF-APPS: &amp;lt;UMONIoT&amp;gt; Connection: keep-alive&lt;BR /&gt;May 22 15:50:51 err ALEOS_APPS_AAF-APPS: &amp;lt;UMONIoT&amp;gt; Accept-Encoding: gzip, deflate, br&lt;BR /&gt;May 22 15:50:51 err ALEOS_APPS_AAF-APPS: &amp;lt;UMONIoT&amp;gt; Referer: &lt;A href="https://www.dropbox.com/" target="_blank"&gt;https://www.dropbox.com/&lt;/A&gt;&lt;BR /&gt;May 22 15:50:51 err ALEOS_APPS_AAF-APPS: &amp;lt;UMONIoT&amp;gt; Failed to download file. Error code [400].&lt;BR /&gt;May 22 15:50:51 warning ALEOS_APPS_AAF-APPS: &amp;lt;RACON-ASSET-TREE&amp;gt; handler error detected Failed to download file. Error code [400].&lt;BR /&gt;May 22 15:50:51 warning ALEOS_APPS_AAF-APPS: &amp;lt;RACON-ASSET-TREE&amp;gt; handler error detected Failed to download file. Error code [400].&lt;BR /&gt;May 22 15:50:51 info ALEOS_APPS_AAF-APPS: &amp;lt;RACON-ASSET-TREE&amp;gt; Asset tree acknowledges ticket 1634917755 (path:'commands.UpdateControllerConfigFile', status:'-3')&lt;BR /&gt;May 22 15:50:51 err ALEOS_APPS_AAF-AGENT: &amp;lt;ASSCON&amp;gt; Asset ({ "iConfiguration", "iData", "iCommands" }) executing (SendData) reports error: 'Failed to download file. Error code [400].'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do not see what is wrong - is something missing?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 15:54:58 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-400-using-download-link-from-embedded-code/m-p/686048#M30869</guid>
      <dc:creator>terryz</dc:creator>
      <dc:date>2023-05-22T15:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: Error 400 using download link from embedded code</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-400-using-download-link-from-embedded-code/m-p/686072#M30870</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1706213"&gt;@terryz&lt;/a&gt; No, the values there appear to be valid, and nothing seems to be missing when compared to a curl sample. The only thing that looks off is that the whole URL is output under a description of "requestParams.method", but that may just be how the client is formatting its logging; it may not be representative of how it is actually formatting the real HTTP request it is sending. (The actual start line of the HTTP request should look like "GET /s/y5jlwu5nfr3s8xe/FAULTMSG.CSV?dl=1 HTTP/1.1"; and the "method" is just the "GET" part.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The generic 400 HTML error page you're getting can be returned when the HTTP request itself is malformed, even if the intended header values themselves would be correct. For example, we've seen this when a client malforms a request by accidentally sending an extra blank line (thereby ending the headers section) before sending the rest of the actual headers. That sort of corruption may not be apparent from the client-side logging though unfortunately.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In order to simplify this in the hopes of eliminating the corruption, have you tried running your code without setting the headers yourself? You don't need to mimic a browser anyway, and the client may automatically set the header(s) that are needed (e.g., "Host").&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 17:20:45 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-400-using-download-link-from-embedded-code/m-p/686072#M30870</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-05-22T17:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: Error 400 using download link from embedded code</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-400-using-download-link-from-embedded-code/m-p/686076#M30871</link>
      <description>&lt;P&gt;It does appear from the log output that the full line of the GET request is indeed:&lt;/P&gt;&lt;P&gt;GET &lt;A href="https://www.dropbox.com:443/s/y5jlwu5nfr3s8xe/FAULTMSG.CSV?dl=1" target="_blank" rel="noopener"&gt;https://www.dropbox.com:443/s/y5jlwu5nfr3s8xe/FAULTMSG.CSV?dl=1&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you saying that the &lt;A href="https://www.dropbox.com:443" target="_blank" rel="noopener"&gt;https://www.dropbox.com:443&lt;/A&gt;&amp;nbsp;should be removed from the request to be like:&lt;/P&gt;&lt;P&gt;GET&amp;nbsp;/s/y5jlwu5nfr3s8xe/FAULTMSG.CSV?dl=1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If that is the case, then I believ&lt;SPAN&gt;e I need to put in the header ":HOST" = &lt;/SPAN&gt;&lt;A href="https://www.dropbox.com:443" target="_blank" rel="noopener"&gt;https://www.dropbox.com:443&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 17:30:28 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-400-using-download-link-from-embedded-code/m-p/686076#M30871</guid>
      <dc:creator>terryz</dc:creator>
      <dc:date>2023-05-22T17:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: Error 400 using download link from embedded code</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-400-using-download-link-from-embedded-code/m-p/686080#M30872</link>
      <description>&lt;P&gt;If the client is actually sending that full URL string in the start line, that would be incorrect. The start line in the HTTP request should only contain the method, path, and HTTP version; not the hostname/port. And the "Host" header should only contain the hostname. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, see that part of the first request in your working curl example for comparison:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1706213"&gt;@terryz&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;gt; GET /s/y5jlwu5nfr3s8xe/FAULTMSG.CSV?dl=1 HTTP/1.1&lt;BR /&gt;&amp;gt; Host: &lt;A href="http://www.dropbox.com" target="_blank" rel="noopener"&gt;www.dropbox.com&lt;/A&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 17:38:53 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-400-using-download-link-from-embedded-code/m-p/686080#M30872</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-05-22T17:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: Error 400 using download link from embedded code</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-400-using-download-link-from-embedded-code/m-p/686093#M30873</link>
      <description>&lt;P&gt;OK, I will have to reformat the headers to what they need to be and give that a shot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 18:04:58 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-400-using-download-link-from-embedded-code/m-p/686093#M30873</guid>
      <dc:creator>terryz</dc:creator>
      <dc:date>2023-05-22T18:04:58Z</dc:date>
    </item>
  </channel>
</rss>

