How to read local files using Guzzle http

516 Views Asked by At

I am trying to load this using GuzzleHTTP file://localhost/. It shows libcurl 'file://' protocol not supported.
How can I fix this, please let me know.
Thanks in advance!

1

There are 1 best solutions below

0
Emil Georgiev On

No way to read local file with Guzzle. It's said that the protocol not supported. Use something like file_get_contents instead.