CopyPastor

Detecting plagiarism made easy.

Score: 0.8317086871565013; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2023-05-11
by Gopal Vashistha

Original Post

Original - Posted on 2020-08-01
by Sachin Sharma



            
Present in both answers; Present only in the new answer; Present only in the old answer;

You content type in header should be Content-Type: application/x-www-form-urlencoded instead of Content-Type: application/json
FOR POSTMAN: BODY should be x-www-form-urlencoded instead of form-data.
Find
curl_setopt($ch, CURLOPT_HTTPHEADER,'Content-Type: application/json'); Replace with::
curl_setopt( $ch, CURLOPT_HTTPHEADER, array('Content-Type: application/x-www-form-urlencoded')); TRY THIS KUDOS!
You content type in header should be `Content-Type: application/x-www-form-urlencoded` instead of `Content-Type: application/json`
FOR POSTMAN: BODY should be `x-www-form-urlencoded` instead of `form-data`.

**Find**
curl_setopt($ch, CURLOPT_HTTPHEADER,'Content-Type: application/json');
**Replace with::**
curl_setopt( $ch, CURLOPT_HTTPHEADER, array('Content-Type: application/x-www-form-urlencoded'));
TRY THIS KUDOS!

        
Present in both answers; Present only in the new answer; Present only in the old answer;