Level up your Box knowledge with brand new learning paths on Box University. Visit training.box.com to get started

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.