Welcome to the new Box Support website. Check out all the details here on what’s changed.

About BOX API file download

Answered
New post

Comments

1 comment

  • kishimoto2

    I understood the cause

    An unnecessary setting was included in the option setting of the curl library.

     

    // Mistake part
    $curl = curl_init($dl_api);
    curl_setopt($curl, CURLOPT_HTTPHEADER, $header);
    curl_setopt($curl, CURLOPT_CUSTOMREQUEST, 'GET');
    curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);

    $response = curl_exec($curl)

     

    // Modified part
    $curl = curl_init($dl_api);
    curl_setopt($curl, CURLOPT_HTTPHEADER, $header);
    curl_setopt($curl, CURLOPT_CUSTOMREQUEST, 'GET');

    $response = curl_exec($curl)

     

    0
    Comment actions Permalink

Please sign in to leave a comment.