I am running the command on Windows 10 in powershell.
The command is as follows
Invoke-WebRequest -Uri www.example.com -Method POST -InFile FileNameHere