Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Partial Content #39

Open
Worper1997 opened this issue Jun 29, 2018 · 0 comments
Open

Partial Content #39

Worper1997 opened this issue Jun 29, 2018 · 0 comments

Comments

@Worper1997
Copy link

Hi
If I want to read partial content the following line makes issues:
Line 203
if(curl_errno($ch) !== 0 || intval($request_info['http_code']) !== 200)

Since partial content returns status 206
I'm reducing this to if(curl_errno($ch) !== 0 ) { //if server responded with http error
since http_code needs to be checked in callback function depending on usage.

    $user_data['curl_errno'] = curl_errno($ch);
    $user_data['curl_error'] = curl_error($ch);
  if($user_data['curl_errno'] !== 0 ) { //if server responded with http error
        $response = false;
    } else { //sucessful response
        $response = curl_multi_getcontent($ch);
    }

seems nice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant