Category : http-headers

I want to upload in chunks a file to a Nuxeo server : … use SymfonyContractsHttpClientHttpClientInterface; … public function __construct(HttpClientInterface $client) { $this->client = $client; } … $nbChunks = 5; for($chunkIdx = 0 ; $chunkIdx < $nbChunks ; $chunkIdx++) { $uploadResponse = $this->client->request(‘POST’, ‘http://192.168.128.101:8080/nuxeo/api/v1/upload/’ . $nuxeoBatchId . ‘/’ . $fileIdx, [ ‘headers’ => [ ‘Authorization’ ..

Read more