<?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: Share Link Redirect URL has no Content-Length in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Share-Link-Redirect-URL-has-no-Content-Length/m-p/315607#M18731</link>
    <description>&lt;P&gt;Hey there,&lt;/P&gt;&lt;P&gt;there is an easy solution to this question: Do a HEAD request with a Range:bytes=0- header. Then you will have a Content-Length header in the response &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@488936AC5FA64023548E32631AFD9803/emoticons/1f600.png" alt=":grinning_face:" title=":grinning_face:" /&gt; Hope that helps, greetings&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;</description>
    <pubDate>Tue, 04 Dec 2018 16:32:52 GMT</pubDate>
    <dc:creator>sechel</dc:creator>
    <dc:date>2018-12-04T16:32:52Z</dc:date>
    <item>
      <title>Share Link Redirect URL has no Content-Length</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Share-Link-Redirect-URL-has-no-Content-Length/m-p/254046#M14669</link>
      <description>&lt;P&gt;I'm trying to get the filesize from a shared link:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looking at the answer to&amp;nbsp;&lt;A href="https://www.dropboxforum.com/t5/API-support/Get-size-without-authenticating/td-p/324" target="_blank"&gt;[this post]&lt;/A&gt;&amp;nbsp;- the shared link creates a redirect to the file, which should provide a filesize in the headers..&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems that the "Content-Length" Header is no longer available on the redirect link.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there an alternative method?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:17:06 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Share-Link-Redirect-URL-has-no-Content-Length/m-p/254046#M14669</guid>
      <dc:creator>Roon</dc:creator>
      <dc:date>2019-05-29T09:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: Share Link Redirect URL has no Content-Length</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Share-Link-Redirect-URL-has-no-Content-Length/m-p/254362#M14683</link>
      <description>My sample there is still returning Content-Length for me. Can you share a sample and output that isn't working as expected for you? Thanks in advance!</description>
      <pubDate>Mon, 27 Nov 2017 15:14:42 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Share-Link-Redirect-URL-has-no-Content-Length/m-p/254362#M14683</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-11-27T15:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: Share Link Redirect URL has no Content-Length</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Share-Link-Redirect-URL-has-no-Content-Length/m-p/254774#M14722</link>
      <description>&lt;P&gt;Hi Greg,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;heres my&amp;nbsp;output&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;$ curl -I https://www.dropbox.com/sh/j1msw4e8dup2c5q/AAANYUWXcyBDgxVGkveU7AFla?dl=1
HTTP/1.1 302 Found
Server: nginx
Date: Thu, 30 Nov 2017 11:03:23 GMT
Content-Type: text/html; charset=utf-8
Connection: keep-alive
Cache-Control: no-cache
Content-Security-Policy: sandbox
Location: https://dl.dropboxusercontent.com/content_link_zip/liyObwdrElvSIeElexmq1AqHMTZhWtSFoGu0KKJOo63xs0INfWNSflheo9qjap41/file
Pragma: no-cache
Referrer-Policy: origin-when-cross-origin
Set-Cookie: locale=en; Domain=dropbox.com; expires=Tue, 29 Nov 2022 11:03:23 GMT; Path=/; secure
Set-Cookie: gvc=Mjk4NTU0NTY4OTI3NDA1ODI1NDAzMTI2Mjk5ODM5MTkxNzY2NDU0; expires=Tue, 29 Nov 2022 11:03:23 GMT; httponly; Path=/; secure
Set-Cookie: flash=; Domain=dropbox.com; expires=Thu, 30 Nov 2017 11:03:23 GMT; Path=/; secure
Set-Cookie: puc=; expires=Thu, 30 Nov 2017 11:03:23 GMT; httponly; Path=/; secure
Set-Cookie: bang=; Domain=dropbox.com; expires=Thu, 30 Nov 2017 11:03:23 GMT; Path=/; secure
Set-Cookie: t=Xdr_KsdQvptCBofiAcYwgGSY; Domain=dropbox.com; expires=Sun, 29 Nov 2020 11:03:23 GMT; httponly; Path=/; secure
Set-Cookie: __Host-js_csrf=Xdr_KsdQvptCBofiAcYwgGSY; expires=Sun, 29 Nov 2020 11:03:23 GMT; Path=/; secure
X-Content-Type-Options: nosniff
X-Dropbox-Request-Id: 760ad66de5a8c9aa75c7e535a0491e38
X-Frame-Options: DENY
X-Robots-Tag: noindex, nofollow, noimageindex
X-Xss-Protection: 1; mode=block
Strict-Transport-Security: max-age=15552000; includeSubDomains&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and then if i try the redirect link directly (from the Location: xxx in the above)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;$ curl -I https://dl.dropboxusercontent.com/content_link_zip/liyObwdrElvSIeElexmq1AqHMTZhWtSFoGu0KKJOo63xs0INfWNSflheo9qjap41/file
HTTP/1.1 200 OK
Server: nginx
Date: Thu, 30 Nov 2017 11:03:45 GMT
Content-Type: application/zip
Connection: keep-alive
referrer-policy: no-referrer
x-robots-tag: noindex, nofollow, noimageindex
content-disposition: attachment; filename="AscentShared.zip"; filename*=UTF-8''AscentShared.zip
set-cookie: uc_session=ouN6cNB5FrD7Kf0nDpzHHCXY6wLIJFZ2rRVH6pmLHsdY1JLMkHnoHzPQBCKnG1Pw; Domain=dropboxusercontent.com; httponly; Path=/; secure
content-security-policy: referrer no-referrer
x-dropbox-request-id: d3e420b20a4f94e73d00a6cc078b74c7
pragma: public
cache-control: max-age=0
x-content-security-policy: referrer no-referrer
x-webkit-csp: referrer no-referrer
X-Server-Response-Time: 557
Strict-Transport-Security: max-age=15552000; includeSubDomains&lt;/PRE&gt;</description>
      <pubDate>Thu, 30 Nov 2017 11:12:36 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Share-Link-Redirect-URL-has-no-Content-Length/m-p/254774#M14722</guid>
      <dc:creator>Roon</dc:creator>
      <dc:date>2017-11-30T11:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: Share Link Redirect URL has no Content-Length</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Share-Link-Redirect-URL-has-no-Content-Length/m-p/255116#M14745</link>
      <description>&lt;P&gt;Content-Length is not required, Your shared link is a folder then Dropbox is probably dynamically zipping it, that is probably the reason why it have not a length&lt;/P&gt;</description>
      <pubDate>Sun, 03 Dec 2017 14:52:23 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Share-Link-Redirect-URL-has-no-Content-Length/m-p/255116#M14745</guid>
      <dc:creator>deFreitas</dc:creator>
      <dc:date>2017-12-03T14:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: Share Link Redirect URL has no Content-Length</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Share-Link-Redirect-URL-has-no-Content-Length/m-p/255226#M14753</link>
      <description>That's correct, my sample was a link for a file, so it can offer a Content-Length. Your example is a link for a folder, which is compressed on the fly, so the Content-Length isn't available.</description>
      <pubDate>Mon, 04 Dec 2017 14:43:57 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Share-Link-Redirect-URL-has-no-Content-Length/m-p/255226#M14753</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-12-04T14:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: Share Link Redirect URL has no Content-Length</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Share-Link-Redirect-URL-has-no-Content-Length/m-p/255230#M14755</link>
      <description>Thanks.. &lt;BR /&gt;So I take that to mean that the compression is incomplete when the headers are sent.. and consequently there is no known size.. &lt;BR /&gt;Leading me to the question, how am i supposed to know the compressed file-size of a folder prior to downloading it? (I need to indicate progress as a percentage)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 04 Dec 2017 14:58:23 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Share-Link-Redirect-URL-has-no-Content-Length/m-p/255230#M14755</guid>
      <dc:creator>Roon</dc:creator>
      <dc:date>2017-12-04T14:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: Share Link Redirect URL has no Content-Length</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Share-Link-Redirect-URL-has-no-Content-Length/m-p/255231#M14756</link>
      <description>I don't believe there is a way to find out the size ahead of time unfortunately.</description>
      <pubDate>Mon, 04 Dec 2017 15:10:40 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Share-Link-Redirect-URL-has-no-Content-Length/m-p/255231#M14756</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-12-04T15:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: Share Link Redirect URL has no Content-Length</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Share-Link-Redirect-URL-has-no-Content-Length/m-p/315607#M18731</link>
      <description>&lt;P&gt;Hey there,&lt;/P&gt;&lt;P&gt;there is an easy solution to this question: Do a HEAD request with a Range:bytes=0- header. Then you will have a Content-Length header in the response &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@488936AC5FA64023548E32631AFD9803/emoticons/1f600.png" alt=":grinning_face:" title=":grinning_face:" /&gt; Hope that helps, greetings&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;</description>
      <pubDate>Tue, 04 Dec 2018 16:32:52 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Share-Link-Redirect-URL-has-no-Content-Length/m-p/315607#M18731</guid>
      <dc:creator>sechel</dc:creator>
      <dc:date>2018-12-04T16:32:52Z</dc:date>
    </item>
  </channel>
</rss>

