Results 1 to 8 of 8

Thread: Access dropbox file - The remote server returned an error: (404) Not Found

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2024
    Posts
    7

    Access dropbox file - The remote server returned an error: (404) Not Found

    i'm new in this type of access.
    I wrote this code but i have the error in objet to recover the list of files in dropbox.

    Code:
            Dim token As String
            token = "sl.B6........."
            Dim _command As String
            _command = "https://api.dropboxapi.com/2/files/list_folder"
    
            Dim Request As HttpWebRequest
            Request = HttpWebRequest.Create(_command)
    
            Request.Method = "GET"
            Request.KeepAlive = True
            Request.ContentType = "application/x-www-form-urlencoded"
            Request.UserAgent = "Mozilla/5.0 (Windows NT 6.3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36"
            Request.AllowAutoRedirect = True
            Request.Headers.Add("Authorization", "Bearer " & token)
    
            ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12
    
            Dim Response As HttpWebResponse = Request.GetResponse()
    Last edited by dday9; Aug 15th, 2024 at 09:46 AM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width