deSoul
deSoul

Reputation: 95

Unable execute POST query with inserted JSON data over CURL

I need to create POST query to application ( https://exampleapp.com/ms/auth ) over CURL utility. But query is:

login=MyLogin&password=MyPassword&firstEnv=0&SecondEnv={"device_id":"23","device_os":1,"device_os_version":"1.2.3","a
pp_version":"2.3(4)"}

How i can do this via CURL utility (Windows) ?

Upvotes: 0

Views: 49

Answers (1)

Daniel Stenberg
Daniel Stenberg

Reputation: 58004

  1. put the entire thing you want to post into a file, call the file 'blob.txt'
  2. invoke curl -d @blob.txt https://example.com/blabla/bla

Upvotes: 1

Related Questions