I have a command that works successfully in Postman:
Method: POST
Address: 192.168.1.83:8080/jsonrpc
Body: {ājsonrpcā: ā2.0ā, āmethodā: āInput.Upā, āidā: 1}
Type: JSON (application/json)
A screenshot of this is in this image album https://imgur.com/a/iPKqA
It does what I want and returns a success message ({āidā:1,ājsonrpcā:ā2.0ā,āresultā:āOKā}).
If I click the Code button by the right margin,
Partial screenshot in album.
it gives me several ways to see the code that Postman is generating.
Partial screenshot in album.
I choose cURL
Partial screenshot in album.
and it gives me this code
curl -X POST
http://192.168.1.83:8080/jsonrpc
-H āCache-Control: no-cacheā
-H āContent-Type: application/jsonā
-H āPostman-Token: 82ec87fb-667f-a0fe-182e-9621199274aeā
-d ā {ājsonrpcā: ā2.0ā, āmethodā: āInput.Upā, āidā: 1}ā
Partial screenshot in album.
When I try to use that code at a Windows command prompt, it doesnāt work
Partial screenshot in album.
How can I generate a code snippet that I can run from a Windows command prompt that will work?