1

I'm scratching my head around a stuff from last few hours, basically I wanna convert this chunk of code to PHP codes

  curl -X POST \
    'http://api.testwyre.com/v3/accounts/AC-XXXANREWUNJ/individualGovernmentId?documentType=DRIVING_LICENSE&documentSubType=FRONT&timestamp=1426252182534' \
    --upload-file '/Users/user/passport.pdf' \
    -H 'Content-Type: application/pdf' \
    -H 'X-Api-Signature: XXXX' \
    -H 'X-Api-Key: XXXX'

My only problem is::

How to use --upload-file as POST Request in PHP Curl ?

Please anyone help me in converting above code to PHP

2
  • Maybe incarnate.github.io/curl-to-php ? Commented Oct 12, 2020 at 6:28
  • @Syscall tried already but its also ignoring the --upload-file part Commented Oct 12, 2020 at 6:29

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.