'cURL error 56: OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 104

Hi I am sending file to server side that require integration service uses TLS/SSL. Below is my code sending file

    $client = new GuzzleHttp\Client(['base_uri' => 'https://secure.urganda.com/api/submissions/[email protected]/']);

    $response = $client->request('POST', 'dsd', [

        'headers' => [
              'User-Agent' =>  $_SERVER['HTTP_USER_AGENT'],
              'Host' => 'secure.urganda.com',
              'Accept' => 'application/json',
              'Content-Type'  => $type,
              'x-urkund-submitter'  => '[email protected]',
              'x-urkund-filename'  => $filename,
              'Content-Length'  => $size,
              'Authorization' => 'Basic '. base64_encode($username.':'.$password)
            ],
            
            
        'contents' => fopen($path, 'r')
        
        
    ]);

    echo $response->getStatusCode();
    echo $response->getBody();

Then i get error cURL error 56: OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 104 anyone know what is the problem?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source