0

I am getting the same results using curl -X POST www.example.com -d "code : 123" -u user:pwd

And using Postman on chrome, in the basic auth tab, putting user:pwd, to generate a Authorization code (which looks like some encoded string)

Is there no difference?

Giacomo1968
  • 25,759
  • 11
  • 71
  • 103
dowjones123
  • 3,695
  • 5
  • 40
  • 83

1 Answers1

0

The default in curl (i.e. unless you add --digest, --negotiate, --ntlm or --anyauth) is to use Basic authentication, so yes, it is the same.

Note that if you have -d, you don't need the -X POST, as it is implied.

jcaron
  • 17,302
  • 6
  • 32
  • 46