KDJ0127
KDJ0127

Reputation: 11

CURL request formatted in PHP

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?

Upvotes: 0

Views: 51

Answers (0)

Related Questions