Learn how to make the most out of the Dropbox Community here 💙!
Forum Discussion
straightvisions
8 years agoNew member | Level 2
[PHP] /files/list_folder returns Curl Error 51
Related SDK and Issue: https://github.com/kunalvarma05/dropbox-php-sdk/issues/100 Warning: cURL error 51: SSL: no alternative certificate subject name matches target host name 'api.dropboxapi...
Greg-DB
Dropbox Staff
8 years agoThe api.dropboxapi.com host is currently being served with a valid certificate, so it's not clear why your client isn't trusting it. (Is there any security software, e.g., firewall, or a proxy that may be intefering?)
In any case, the /2/files/list_folder endpoint does need to be called on the Dropbox API servers, for which either of these host names are valid:
- api.dropbox.com
- api.dropboxapi.com
The /2/files/download endpoint does need to be called on the Dropbox API content servers, for which either of these host names are valid:
- api-content.dropbox.com
- content.dropboxapi.com
(Note that at the end of your post you mentioned "content.dropbox.com isn't available in v2". That is true in that "content.dropbox.com" is not a valid host name, but "content.dropboxapi.com" is valid and does serve API v2.)
- straightvisions8 years agoNew member | Level 2
Thank you for your detailed answer. Based on this, I was able to track down the bug, which was indeed a wrong content url.
Thank you, issue solved.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,976 PostsLatest Activity: 16 hours ago
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!