how to make queries passing 2 parameters via Curl?

0

I need to send a user and password via curl in txt, it's just for testing, for example

curl -v -H "Accept: application / json" -H "Content-type: application / json" link

I want to pass the user and password in this query, someone can help

GET, I need to pass the parameters because a method will consult the bank and see if it is valid.

    
asked by anonymous 19.08.2016 / 17:12

1 answer

1

An example like sending json:

   curl -H "Content-Type: application/json" -X POST -d '{"usuario":"foo","senha":"bar"}' http://127.0.0.1/students/

usuario and senha are the parameter names.
foo and bar are their respective values.

    
19.08.2016 / 17:17