Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm trying to generate a link to share a folder in Dropbox using C#. Im using the SharpBox API and this link[^] to share folders. I got the code for C# from here[^](under the heading: Issuing HTTP POST Requests) and copied it as it was. Im passing the following parameters in the function:

string url = @"https://www.dropbox.com/1/shares/dropbox/" + @"Apps/myAppFolder/CommonFolder";
            string[] paramz = { "locale", "short_url" };
            string[] values = { "404", "false" };
            string result = DropboxUtil.HttpPost(url, paramz, values);

However I get a 403 forbidden error on this line in the function:

using (HttpWebResponse resp = req.GetResponse() as HttpWebResponse)

Please help!
Posted

1 solution

Details and possible fix of it:
HTTP Error 403 Forbidden[^]
403 Forbidden Error Resolution[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900