You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

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

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.

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

    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

      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 ?

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

        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.

  • tanukrishna's avatar
    tanukrishna
    New member | Level 2

    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.

    • Luan09's avatar
      Luan09
      Explorer | Level 4

      Thanks for your reply. Have a nice day !