I'm running into issue while using curl to consume a webservice. There is URL which works fine if we consume using Postman but fails when consumed via cURL.
URL in Postman, which works fine:
https://localhost/WebService/InvokeEventRule?EventRuleName=S3Copy&EventParams=
Below is the cURL command, which fails and gives an error as 'EventParams is not recognized as an internal or external command'
curl -k -u testuser:Password0! --url https://localhost/WebService/InvokeEventRule?EventRuleName=S3Copy&EventParams=
Notice the ampersand (&) after S3Copy in URL, if I replace it with ?, cURL will not give the error as mentioned above but the I'll get a 'Bad Request' and of course replacing & with ? will fail in Postman too.
Could anybody advise why CURL is not accepting ampersand (&) but ? and anyway it's failing?
