Failed to open/read local data from file/application

Question:

I was trying to run curl command using PowerShell.

below is the curl command

Above curl is working on the Command Prompt.

I tried below PowerShell code

I am getting below error

Where I am doing the mistake, please suggest.

Answer:

Don’t use splatting in this case, just pass the argument list ($ instead of @), properly add the quotes and make sure $path gets expanded:

Source:

Failed to open/read local data from file/application by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply