Your workflow is unique 👨‍💻 -  tell us how you use Dropbox here.

Forum Discussion

Luan09's avatar
Luan09
Explorer | Level 4
3 years ago
Solved

Can you help me full definition of User-Agent in DropboxClientConfig

Hi everyone, Please help me full definition of User-Agent in DropboxClientConfig, I use SDK for .NET, in my code:

var config = new DropboxClientConfig([userAgent]"AppTest")
{
HttpClient = httpClient
};


  • Luan09 wrote:

    Hi everyone, Please help me full definition of User-Agent in DropboxClientConfig, ...


    Hi Luan09,

    It's hard to be set exact definition. In HTTP is a optional header that lets the client describe itself to the server. By default all Dropbox SDKs put there information describing themself. You can add additional information (describing your application specifically, if you want) to this header, passing it through as parameter. Directives to format such an info can be seen here.

    Hope this clarifies matter.

5 Replies

  • Здравко's avatar
    Здравко
    Legendary | Level 20
    3 years ago

    Luan09 wrote:

    Hi everyone, Please help me full definition of User-Agent in DropboxClientConfig, ...


    Hi Luan09,

    It's hard to be set exact definition. In HTTP is a optional header that lets the client describe itself to the server. By default all Dropbox SDKs put there information describing themself. You can add additional information (describing your application specifically, if you want) to this header, passing it through as parameter. Directives to format such an info can be seen here.

    Hope this clarifies matter.

  • Luan09's avatar
    Luan09
    Explorer | Level 4
    3 years ago

    Thanks for your support. So that means declare User-Agent content won't affect the data sent or received when using dropbox's SDK right ?

  • tanukrishna's avatar
    tanukrishna
    New member | Level 2
    3 years ago

    A user agent is any software that retrieves and presents Web content for end users or is implemented using Web technologies. User agents include Web browsers, media players, and plug-ins that help in retrieving, rendering and interacting with Web content.

  • Здравко's avatar
    Здравко
    Legendary | Level 20
    3 years ago

    Luan09 wrote:

    ... User-Agent content won't affect the data sent or received when using dropbox's SDK right ?


    Exactly... Its purpose is informative only. Some servers may be interested how are you trying access them (so they be able provide adapted content for instance). Dropbox servers targeting API access may log this information for debug purposes, but they ignore it in regards to the behavior.

  • Luan09's avatar
    Luan09
    Explorer | Level 4
    3 years ago

    Thanks for your reply. Have a nice day !

About Discuss Dropbox Developer and API

Node avatar for Discuss Dropbox Developer and API
Explore Dropbox Developer & API discussions with developers like you.

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

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, Facebook or Instagram.

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!