<?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: HTTP/1.1 301 Moved Permanantly error in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/HTTP-1-1-301-Moved-Permanantly-error/m-p/271956#M16143</link>
    <description>I can't offer help with lua itself, but it looks like you may not have it configured to actually use https and so it's falling back to http. Dropbox API calls requires https though, so it is redirecting you to https. &lt;BR /&gt;&lt;BR /&gt;It looks like there's more information about configuring https support in lua here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://stackoverflow.com/questions/8286677/https-request-in-lua" target="_blank"&gt;https://stackoverflow.com/questions/8286677/https-request-in-lua&lt;/A&gt;</description>
    <pubDate>Tue, 10 Apr 2018 15:50:53 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2018-04-10T15:50:53Z</dc:date>
    <item>
      <title>HTTP/1.1 301 Moved Permanantly error</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/HTTP-1-1-301-Moved-Permanantly-error/m-p/271935#M16139</link>
      <description>&lt;PRE&gt;-- code written in lua &lt;BR /&gt;&lt;BR /&gt;local http = require("socket.http")
local ltn12 = require("ltn12")
local json = require("json")

local url = "https://api.dropboxapi.com"
local data = {}

local request = {http.request{
	url=url,
	path = "/2/files/list_folder",
	method="POST",
	sink = ltn12.sink.table(data),
	headers = {
		["Content-Type"] = "application/json",
		["Authorization"] = "Bearer -secret code"
	},
	source = ltn12.source.string(json.encode{
		path = "",
		shared_link = {
			url = "secret link"
		}
	})
}}

stuff["data"]=data 

require("Parse")(request)
&lt;/PRE&gt;
&lt;P&gt;I'm attempting to use a folder for a web library for my personal projects, but I can't get the HTTP request to work properly. I've tried many things, but it always returns with the Moved Permanantly error. Anyone have an idea of what's wrong?&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:14:00 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/HTTP-1-1-301-Moved-Permanantly-error/m-p/271935#M16139</guid>
      <dc:creator>Descaii</dc:creator>
      <dc:date>2019-05-29T09:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP/1.1 301 Moved Permanantly error</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/HTTP-1-1-301-Moved-Permanantly-error/m-p/271956#M16143</link>
      <description>I can't offer help with lua itself, but it looks like you may not have it configured to actually use https and so it's falling back to http. Dropbox API calls requires https though, so it is redirecting you to https. &lt;BR /&gt;&lt;BR /&gt;It looks like there's more information about configuring https support in lua here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://stackoverflow.com/questions/8286677/https-request-in-lua" target="_blank"&gt;https://stackoverflow.com/questions/8286677/https-request-in-lua&lt;/A&gt;</description>
      <pubDate>Tue, 10 Apr 2018 15:50:53 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/HTTP-1-1-301-Moved-Permanantly-error/m-p/271956#M16143</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-04-10T15:50:53Z</dc:date>
    </item>
  </channel>
</rss>

