CURL request formatted in PHP

51 Views Asked by At

I am working with a shipping carrier (Estes Express) and integrating their system into my system designed in PHP. I've looked up how PHP curl requests are created; however, I am confused on how to integrate certain features into the CURL request. Below, I am going to paste in how they showed the CURL request. If someone could assist in showing me how to plug the variables into a standard PHP CURL that would be fantastic.

curl -X POST 'https://cloudapi.estes-express.com/v1/api-key'
-H 'accept: application/json'
-u myEstesUsername:myEstesPassword

How do I integrate the -H and -u into a PHP curl format? Any ideas?

0

There are 0 best solutions below