fork download
  1. $url = "https://a...content-available-to-author-only...t.in/v1/external/auth/login";
  2.  
  3. $curl = curl_init();
  4. curl_setopt($curl, CURLOPT_URL, $url);
  5. curl_setopt($curl, CURLOPT_HTTPHEADER, array('Accept: application/json', 'Content-Type: application/json'));
  6. curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
  7. // $temp_id= $nse_list_val['id'];
  8. $data = <<<DATA
  9. {
  10. "coolrj00786@gmail.com":"","Rajendra@98":""
  11. }
  12. DATA;
  13.  
  14. curl_setopt($curl, CURLOPT_POSTFIELDS, $data);
  15.  
  16. $resp = curl_exec($curl);
  17. curl_close($curl);
  18.  
  19. $data_json = json_decode($resp, true);
  20.  
  21. print_r($data_json);
Success #stdin #stdout 0.02s 25784KB
stdin
Standard input is empty
stdout
$url = "https://a...content-available-to-author-only...t.in/v1/external/auth/login";
    
    $curl = curl_init();
    curl_setopt($curl, CURLOPT_URL, $url);
    curl_setopt($curl, CURLOPT_HTTPHEADER, array('Accept: application/json', 'Content-Type: application/json'));
    curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
        // $temp_id= $nse_list_val['id'];
    $data = <<<DATA
    {
    "coolrj00786@gmail.com":"","Rajendra@98":""
    }
    DATA;
    
    curl_setopt($curl, CURLOPT_POSTFIELDS, $data);
    
    $resp = curl_exec($curl);
    curl_close($curl);
    
    $data_json =  json_decode($resp, true);
    
    print_r($data_json);