<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: https://api.dropboxapi.com/2/users/get_space_usage no response in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/https-api-dropboxapi-com-2-users-get-space-usage-no-response/m-p/263898#M15435</link>
    <description>I just tried this, and it is working properly for me. Are you still seeing this issue? If so, is there anything on your network connection, such as a firewall or proxy, that may be interfering? &lt;BR /&gt;&lt;BR /&gt;By the way, I redacted it from your post, but for the sake of security, you should disable that access token. You can do so by revoking access to the app entirely, if the access token is for your account, here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.dropbox.com/account/connected_apps" target="_blank"&gt;https://www.dropbox.com/account/connected_apps&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Or, you can disable just this access token using the API:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#auth-token-revoke" target="_blank"&gt;https://www.dropbox.com/developers/documentation/http/documentation#auth-token-revoke&lt;/A&gt;</description>
    <pubDate>Wed, 07 Feb 2018 14:22:47 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2018-02-07T14:22:47Z</dc:date>
    <item>
      <title>https://api.dropboxapi.com/2/users/get_space_usage no response</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/https-api-dropboxapi-com-2-users-get-space-usage-no-response/m-p/263841#M15429</link>
      <description>&lt;P&gt;Hello. we use Dropbox HTTP V2 API to upload files . all it's ok.&lt;/P&gt;&lt;P&gt;but. there is no response when send&lt;/P&gt;&lt;PRE&gt;https://api.dropboxapi.com/2/users/get_space_usage&lt;/PRE&gt;&lt;P&gt;post .&lt;/P&gt;&lt;P&gt;&amp;nbsp;we don't know why.&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:15:35 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/https-api-dropboxapi-com-2-users-get-space-usage-no-response/m-p/263841#M15429</guid>
      <dc:creator>raysharp</dc:creator>
      <dc:date>2019-05-29T09:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: https://api.dropboxapi.com/2/users/get_space_usage no response</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/https-api-dropboxapi-com-2-users-get-space-usage-no-response/m-p/263848#M15430</link>
      <description>&lt;P&gt;* About to connect() to api.dropboxapi.com port 443 (#1)&lt;BR /&gt;*&amp;nbsp;&amp;nbsp; Trying 162.125.7.7...&lt;BR /&gt;* Connected to api.dropboxapi.com (162.125.7.7) port 443 (#1)&lt;BR /&gt;*&amp;nbsp;&amp;nbsp; CAfile: /etc/pki/tls/certs/ca-bundle.crt&lt;BR /&gt;&amp;nbsp; CApath: none&lt;BR /&gt;* SSL connection using TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384&lt;BR /&gt;* Server certificate:&lt;BR /&gt;* &amp;nbsp;&amp;nbsp; &amp;nbsp;subject: CN=api.dropboxapi.com,OU=Dropbox Ops,O="Dropbox, Inc",L=San Francisco,ST=California,C=US&lt;BR /&gt;* &amp;nbsp;&amp;nbsp; &amp;nbsp;start date: Feb 07 00:00:00 2017 GMT&lt;BR /&gt;* &amp;nbsp;&amp;nbsp; &amp;nbsp;expire date: Feb 12 12:00:00 2020 GMT&lt;BR /&gt;* &amp;nbsp;&amp;nbsp; &amp;nbsp;common name: api.dropboxapi.com&lt;BR /&gt;* &amp;nbsp;&amp;nbsp; &amp;nbsp;issuer: CN=DigiCert SHA2 High Assurance Server CA,OU=&lt;A href="http://www.digicert.com,O=DigiCert" target="_blank"&gt;www.digicert.com,O=DigiCert&lt;/A&gt; Inc,C=US&lt;BR /&gt;&amp;gt; POST /2/users/get_space_usage HTTP/1.1&lt;BR /&gt;Host: api.dropboxapi.com&lt;BR /&gt;Accept: */*&lt;BR /&gt;Authorization: Bearer&amp;nbsp;&amp;lt;ACCESS_TOKEN&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;we are waiting for a long time . but no response from the dropbox server&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2018 14:20:02 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/https-api-dropboxapi-com-2-users-get-space-usage-no-response/m-p/263848#M15430</guid>
      <dc:creator>raysharp</dc:creator>
      <dc:date>2018-02-07T14:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: https://api.dropboxapi.com/2/users/get_space_usage no response</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/https-api-dropboxapi-com-2-users-get-space-usage-no-response/m-p/263898#M15435</link>
      <description>I just tried this, and it is working properly for me. Are you still seeing this issue? If so, is there anything on your network connection, such as a firewall or proxy, that may be interfering? &lt;BR /&gt;&lt;BR /&gt;By the way, I redacted it from your post, but for the sake of security, you should disable that access token. You can do so by revoking access to the app entirely, if the access token is for your account, here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.dropbox.com/account/connected_apps" target="_blank"&gt;https://www.dropbox.com/account/connected_apps&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Or, you can disable just this access token using the API:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#auth-token-revoke" target="_blank"&gt;https://www.dropbox.com/developers/documentation/http/documentation#auth-token-revoke&lt;/A&gt;</description>
      <pubDate>Wed, 07 Feb 2018 14:22:47 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/https-api-dropboxapi-com-2-users-get-space-usage-no-response/m-p/263898#M15435</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-02-07T14:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: https://api.dropboxapi.com/2/users/get_space_usage no response</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/https-api-dropboxapi-com-2-users-get-space-usage-no-response/m-p/264001#M15451</link>
      <description>&lt;P&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN class=""&gt;Thank you for your prompt reply&lt;/SPAN&gt;&lt;/SPAN&gt;!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.&amp;nbsp;&lt;SPAN class="short_text"&gt;&lt;SPAN class=""&gt; the network does not matter.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.&amp;nbsp; The access token I post is not correct, so it's security.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I show the entire process. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp; [root@iZu1hoqybaaZ new]# ./drop&lt;BR /&gt;* About to connect() to api.dropbox.com port 443 (#0)&lt;BR /&gt;*&amp;nbsp;&amp;nbsp; Trying 162.125.7.7...&lt;BR /&gt;* Connected to api.dropbox.com (162.125.7.7) port 443 (#0)&lt;BR /&gt;* Initializing NSS with certpath: sql:/etc/pki/nssdb&lt;BR /&gt;*&amp;nbsp;&amp;nbsp; CAfile: /etc/pki/tls/certs/ca-bundle.crt&lt;BR /&gt;&amp;nbsp; CApath: none&lt;BR /&gt;* SSL connection using TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384&lt;BR /&gt;* Server certificate:&lt;BR /&gt;* &amp;nbsp;&amp;nbsp; &amp;nbsp;subject: CN=api.dropboxapi.com,OU=Dropbox Ops,O="Dropbox, Inc",L=San Francisco,ST=California,C=US&lt;BR /&gt;* &amp;nbsp;&amp;nbsp; &amp;nbsp;start date: Feb 07 00:00:00 2017 GMT&lt;BR /&gt;* &amp;nbsp;&amp;nbsp; &amp;nbsp;expire date: Feb 12 12:00:00 2020 GMT&lt;BR /&gt;* &amp;nbsp;&amp;nbsp; &amp;nbsp;common name: api.dropboxapi.com&lt;BR /&gt;* &amp;nbsp;&amp;nbsp; &amp;nbsp;issuer: CN=DigiCert SHA2 High Assurance Server CA,OU=&lt;A href="http://www.digicert.com,O=DigiCert" target="_blank"&gt;www.digicert.com,O=DigiCert&lt;/A&gt; Inc,C=US&lt;BR /&gt;&amp;gt; GET /1/oauth/request_token HTTP/1.1&lt;BR /&gt;Host: api.dropbox.com&lt;BR /&gt;Accept: */*&lt;BR /&gt;Authorization: OAuth oauth_version="1.0",&amp;nbsp; oauth_signature_method="PLAINTEXT", oauth_consumer_key="XXXXX", &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;oauth_signature="XXXXXXXX&amp;amp;"&lt;BR /&gt;&lt;BR /&gt;&amp;lt; HTTP/1.1 200 OK&lt;BR /&gt;&amp;lt; Server: nginx&lt;BR /&gt;&amp;lt; Date: Wed, 07 Feb 2018 09:18:12 GMT&lt;BR /&gt;&amp;lt; Content-Type: application/x-www-form-urlencoded&lt;BR /&gt;&amp;lt; Transfer-Encoding: chunked&lt;BR /&gt;&amp;lt; Connection: keep-alive&lt;BR /&gt;&amp;lt; Cache-Control: no-cache&lt;BR /&gt;&amp;lt; Pragma: no-cache&lt;BR /&gt;&amp;lt; X-Content-Type-Options: nosniff&lt;BR /&gt;&amp;lt; X-Dropbox-Request-Id: 39d92ec6ee1a74da459f4e804ab11d60&lt;BR /&gt;&amp;lt; X-Frame-Options: SAMEORIGIN&lt;BR /&gt;&amp;lt; X-Server-Response-Time: 83&lt;BR /&gt;&amp;lt;&lt;BR /&gt;* Failed writing body (0 != 64)&lt;BR /&gt;* Failed writing data&lt;BR /&gt;* Closing connection 0&lt;BR /&gt;curl_easy_perform() failed: Failed writing received data to disk/application&lt;BR /&gt;&lt;BR /&gt;err code httpcode == 200&lt;BR /&gt;* About to connect() to api.dropboxapi.com port 443 (#1)&lt;BR /&gt;*&amp;nbsp;&amp;nbsp; Trying 162.125.7.7...&lt;BR /&gt;* Connected to api.dropboxapi.com (162.125.7.7) port 443 (#1)&lt;BR /&gt;*&amp;nbsp;&amp;nbsp; CAfile: /etc/pki/tls/certs/ca-bundle.crt&lt;BR /&gt;&amp;nbsp; CApath: none&lt;BR /&gt;* SSL connection using TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384&lt;BR /&gt;* Server certificate:&lt;BR /&gt;* &amp;nbsp;&amp;nbsp; &amp;nbsp;subject: CN=api.dropboxapi.com,OU=Dropbox Ops,O="Dropbox, Inc",L=San Francisco,ST=California,C=US&lt;BR /&gt;* &amp;nbsp;&amp;nbsp; &amp;nbsp;start date: Feb 07 00:00:00 2017 GMT&lt;BR /&gt;* &amp;nbsp;&amp;nbsp; &amp;nbsp;expire date: Feb 12 12:00:00 2020 GMT&lt;BR /&gt;* &amp;nbsp;&amp;nbsp; &amp;nbsp;common name: api.dropboxapi.com&lt;BR /&gt;* &amp;nbsp;&amp;nbsp; &amp;nbsp;issuer: CN=DigiCert SHA2 High Assurance Server CA,OU=&lt;A href="http://www.digicert.com,O=DigiCert" target="_blank"&gt;www.digicert.com,O=DigiCert&lt;/A&gt; Inc,C=US&lt;BR /&gt;&amp;gt; POST /2/users/get_space_usage HTTP/1.1&lt;BR /&gt;Host: api.dropboxapi.com&lt;BR /&gt;Accept: */*&lt;BR /&gt;Authorization: Bearer XXXXXXXXXXXXXXXX&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN class=""&gt;and there is no response from the dropbox. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Feb 2018 01:08:06 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/https-api-dropboxapi-com-2-users-get-space-usage-no-response/m-p/264001#M15451</guid>
      <dc:creator>raysharp</dc:creator>
      <dc:date>2018-02-08T01:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: https://api.dropboxapi.com/2/users/get_space_usage no response</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/https-api-dropboxapi-com-2-users-get-space-usage-no-response/m-p/264078#M15454</link>
      <description>&lt;P&gt;Are you seeing this for all accounts, or does this only seem to affect specific account(s)? If it's only affecting specific ones, please &lt;A href="https://www.dropbox.com/developers/contact" target="_self"&gt;open an API ticket&lt;/A&gt; and share the account IDs for reference. Also, does the call eventually time out, and if so, what output do you get?&amp;nbsp;Thanks in advance!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Feb 2018 15:04:06 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/https-api-dropboxapi-com-2-users-get-space-usage-no-response/m-p/264078#M15454</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-02-08T15:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: https://api.dropboxapi.com/2/users/get_space_usage no response</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/https-api-dropboxapi-com-2-users-get-space-usage-no-response/m-p/264199#M15467</link>
      <description>&lt;P&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN class=""&gt;Thank you for your prompt reply&lt;/SPAN&gt;&lt;/SPAN&gt;.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;It's not&amp;nbsp;&amp;nbsp; affect specific account(s) but for all accounts.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;we use the same access token&amp;nbsp; by&lt;/P&gt;
&lt;PRE class="last literal-block documentation__curl-example"&gt;curl -X POST https://api.dropboxapi.com/2/users/get_space_usage --header "Authorization: Bearer  &amp;lt;access token&amp;gt;&lt;/PRE&gt;
&lt;PRE class="last literal-block documentation__curl-example"&gt;The dropbox server return right result.&lt;BR /&gt;&lt;BR /&gt;and we use upload API&lt;/PRE&gt;
&lt;PRE class="literal-block"&gt;https://content.dropboxapi.com/2/files/upload&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;
&lt;PRE class="last literal-block documentation__curl-example"&gt;The dropbox server return 200 ok.&lt;BR /&gt;&lt;BR /&gt;but only  use API &lt;/PRE&gt;
&lt;PRE class="literal-block"&gt;https://api.dropboxapi.com/2/users/get_space_usage&lt;/PRE&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;The dropbox server have no reponse.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;we wait for a long long time . there is nothing output .&lt;/P&gt;
&lt;P&gt;PS. we use curl lib API send post.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2018 00:59:18 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/https-api-dropboxapi-com-2-users-get-space-usage-no-response/m-p/264199#M15467</guid>
      <dc:creator>raysharp</dc:creator>
      <dc:date>2018-02-09T00:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: https://api.dropboxapi.com/2/users/get_space_usage no response</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/https-api-dropboxapi-com-2-users-get-space-usage-no-response/m-p/264268#M15475</link>
      <description>Thanks for the additional information. Since this is affecting all accounts, and the same endpoint works when using curl directly on the command line, it sounds like this is specific to how it's being called in your script using the curl lib API.&lt;BR /&gt;&lt;BR /&gt;Can you share that script that has the issue so we can use it to reproduce the issue here? Thanks!</description>
      <pubDate>Fri, 09 Feb 2018 16:43:50 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/https-api-dropboxapi-com-2-users-get-space-usage-no-response/m-p/264268#M15475</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-02-09T16:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: https://api.dropboxapi.com/2/users/get_space_usage no response</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/https-api-dropboxapi-com-2-users-get-space-usage-no-response/m-p/264332#M15484</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;static const char *DROPBOX_GET_CAPITY = "&lt;A href="https://api.dropboxapi.com/2/users/get_space_usage" target="_blank"&gt;https://api.dropboxapi.com/2/users/get_space_usage&lt;/A&gt;";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;static int dropbox_get_capity(const char *access_token)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;char buffer[BUFF_SIZE] = {0};&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;long httpCode = 0;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CURLcode res;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;if(!access_token)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;return -1;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;if (curl) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;struct curl_slist *headers = NULL; /* init to NULL is important */&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;snprintf(buffer, sizeof(buffer), "Authorization: Bearer %s", access_token);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;headers = curl_slist_append(headers, buffer);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; headers = curl_slist_append(headers, "Content-Type: ");&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;curl_easy_setopt(curl, CURLOPT_URL, DROPBOX_GET_CAPITY);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, get_capity_cb);&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;curl_easy_setopt(curl, CURLOPT_POST, 1L);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;/* Perform the request, res will get the return code */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; curl_easy_setopt(curl, CURLOPT_NOSIGNAL, 1L); // thread safe requirement&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; curl_easy_setopt(curl, CURLOPT_TIMEOUT, 10);&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;res = curl_easy_perform(curl);&amp;nbsp;&amp;nbsp; // will block here!!!&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;/* Check for errors */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;if(res != CURLE_OK) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;fprintf(stderr, "curl_easy_perform() failed: %s\n", curl_easy_strerror(res));&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &amp;amp;httpCode);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;printf(" \nerr code httpcode == %ld \n", httpCode);&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;} &lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;if (res == CURLE_OK) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &amp;amp;httpCode);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; printf(" \nhttpcode == %ld \n", httpCode);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;curl_slist_free_all(headers);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;return (int)httpCode;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if you need more code . I will share it. Thanks.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Feb 2018 00:49:18 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/https-api-dropboxapi-com-2-users-get-space-usage-no-response/m-p/264332#M15484</guid>
      <dc:creator>raysharp</dc:creator>
      <dc:date>2018-02-10T00:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: https://api.dropboxapi.com/2/users/get_space_usage no response</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/https-api-dropboxapi-com-2-users-get-space-usage-no-response/m-p/264498#M15490</link>
      <description>&lt;P&gt;Hi , &lt;SPAN class="UserName lia-user-name lia-user-rank-Dropboxer lia-component-message-view-widget-author-username"&gt;&lt;A id="link_11" class="lia-link-navigation lia-page-link lia-user-name-link" style="color: #007ee5;" href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/10" target="_self"&gt;&lt;SPAN class="login-bold"&gt;Greg K&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-Dropboxer lia-component-message-view-widget-author-username"&gt;&lt;SPAN class="login-bold"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Any good news ?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2018 00:46:44 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/https-api-dropboxapi-com-2-users-get-space-usage-no-response/m-p/264498#M15490</guid>
      <dc:creator>raysharp</dc:creator>
      <dc:date>2018-02-12T00:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: https://api.dropboxapi.com/2/users/get_space_usage no response</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/https-api-dropboxapi-com-2-users-get-space-usage-no-response/m-p/264544#M15493</link>
      <description>&lt;P&gt;Thanks! That's helpful. It looks like curl is waiting for the request body. Since this API call doesn't require one, you need to tell&amp;nbsp;curl that, like this:&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;curl_easy_setopt(curl, CURLOPT_POST, 1L);&lt;BR /&gt;curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, 0);&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or, you can send the JSON "null" in the body instead:&lt;/P&gt;
&lt;PRE&gt;headers = curl_slist_append(headers, "Content-Type: application/json");
curl_easy_setopt(curl, CURLOPT_POSTFIELDS, "null");&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2018 12:55:19 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/https-api-dropboxapi-com-2-users-get-space-usage-no-response/m-p/264544#M15493</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-02-12T12:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: https://api.dropboxapi.com/2/users/get_space_usage no response</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/https-api-dropboxapi-com-2-users-get-space-usage-no-response/m-p/266338#M15628</link>
      <description>&lt;P&gt;Many Thanks!&lt;/P&gt;
&lt;P&gt;It's all ok now!&lt;/P&gt;
&lt;P&gt;we add two lines code&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; headers = curl_slist_append(headers, "Content-Type: ");&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, 0);&lt;/P&gt;</description>
      <pubDate>Sat, 24 Feb 2018 03:11:42 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/https-api-dropboxapi-com-2-users-get-space-usage-no-response/m-p/266338#M15628</guid>
      <dc:creator>blink</dc:creator>
      <dc:date>2018-02-24T03:11:42Z</dc:date>
    </item>
  </channel>
</rss>

