Closed Aarskin closed 7 years ago
This was the format that ultimately worked.
curl.exe --% "http://localhost:1234/admin?action=startFlashback" --data "{ \"sceneMode\": \"record\", \"sceneName\": \"test1\", \"matchRule\": \"matchEntireRequest\", \"scenePath\": \"/tmp\", \"proxyHost\": \"localhost\", \"proxyPort\": \"5555\"}"
@Aarskin I tried my code with the format you shared. But somehow, I am still getting the same error. Following are my lines of code I have tried:
curl -u username:password -H "Content-Type: application/json" -X POST -d "{\"key\":\"abc\", \"name\":\"xyz\"}" "http://hosturl/app/rest/userGroups/"
curl -u username:password -H "Content-Type: application/json" -X POST -d "{""key"":""xyz"",""name"":""abc""}" "http://hosturl/app/rest/userGroups/"
curl -u username:password -H "Content-Type: application/json" -X POST -d "{""key"":""xyz"",""name"":""abc""}" http://hosturl/app/rest/userGroups/
curl -u username:password -H "Content-Type: application/json" -X POST -d "{\"key\":\"abc\", \"name\":\"xyz\"}" http://hosturl/app/rest/userGroups/
curl -u username:password -H 'Content-Type: application/json' -X POST -d '{"\"key":"abc","name":"xyz"\"}' http://hosturl/app/rest/userGroups/
curl -u username:password -H 'Content-Type: application/json' -X POST -d '{"key":"abc","name":"xyz"}' http://hosturl/app/rest/userGroups/
Can you please help me with the correct syntax?
Thanks!
I got it working this way...curl -X POST -H "Content-Type: application/json" -H "Authorization: Basic MzUzYjMwaaaM0NDU3NGY1NjUwNDU2ODdlNTM0ZTdkNmE6Mjg2OTI0Njk3ZTYxNWE2NzJhNjQ2YTQ5MzU0NTY0NmM=" -d "{\"user\":{\"emailAddress\":\"test1122@abc.com\"},\" password\":\"abc123\"}" "http://localhost\":8080/oauth2-provider/v1.0/users"
I am attempting to set up Flashback for the first time and ensure the Hello World steps outlined in the README work on my machine.
Unfortunately, the straightforward way of doing this doesn't seem to function correctly. I can clone the repo and start the server no problem. When I attempt to make the action=startFlashback request via Curl, I get the follow exception (making the same request via Postman returns 200 OK)
Here are the formats of the command that I attempted:
Note the differences in usage of quotation marks.
I figure this is a powershell formatting issue, but I've used the escape character with no difference - any thoughts?
Probably relevant version information: