I have a remote PDF like https://mypdf.pdf and I want to send to another service.
my Guzzle code is:
$responseClient = $this->clientGuzzle->request(
'POST', "url", [
'multipart' => [
[
'name' => $name,
'filename' => $name,
'contents' => fopen($pdf,'rb'),
'headers' => [
'Content-Type' => 'application/pdf',
'Content-Transfer-Encoding' => "binary",
]
],
],
]
);
My fopen
is false.