I am planning to test a API through cURL to post some encrypted data to invoke the API and get the response in a file. I am herewith enclosed some steps to do this:
1.A xml file which contains some data like
<?xml version="1.0" encoding="UTF-8"?>
2.Encrypt the xml file using DES3 algorithm and generate the encrypted payload(UI) like:
3. And post these UI with the pre-defined destination url along with ui payload.
4. Get the response
for ex. a complete request looks like before to post
I have found a post to encrypt the xml file using openssl with DES3 algorithm and append the ui to request.
Is this way correct to get the response? or Any other method can do the same thing
Please let me about these.
Thanks and Regards,