I am using HTTP Client to try and download file from external server via api.
I am using get methong with some basicAuth to connect and fetch the file that I want.
In the browser when I lunch the URL eveything is fine, the file starts to download but I can't seem to get it work inside the application.
With of course changing the user and password and it's working inside my browser. Right away from clicking enter the file is starting to download even with the name itself.
I had issues recently download a .pdf blob from my report server and this is what solved for me.
Just a little context, my report server (.Net Core app) is another docker container running on the same docker network as my Laravel app container and the report server is not exposed to the internet, the reason with I used the withoutVerifying() method.