fork download
  1. <?php
  2.  
  3. $url = 'https://a...content-available-to-author-only...y.in/api/method/order';
  4.  
  5. $headers = [
  6. 'Content-Type: application/json',
  7. 'Authorization: Token 6b0b74d5c5d8fe8:c2e07083884572944b212ca7273e7b',
  8. ];
  9.  
  10. for ($i = 1; $i <= 100; $i++) {
  11. $clientRefId = 'JAT' . time() . rand(1000, 9999); // Unique ID using timestamp + random
  12.  
  13. $postData = [
  14. "customer_name" => "Tinkal",
  15. "accountNo" => "50100376115127",
  16. "ifsc" => "HDFC0009314",
  17. "bank" => "HDFC",
  18. "amount" => "100",
  19. "purpose" => "OTHERS",
  20. "mode" => "imps",
  21. "narration" => "narration",
  22. "remark" => "Refund",
  23. "clientRefId" => $clientRefId
  24. ];
  25.  
  26. $ch = curl_init($url);
  27. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  28. curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($postData));
  29. curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
  30. curl_setopt($ch, CURLOPT_POST, true);
  31.  
  32. $start = microtime(true);
  33. $response = curl_exec($ch);
  34. $end = microtime(true);
  35.  
  36. $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
  37.  
  38. if (curl_errno($ch)) {
  39. echo "Request $i: cURL Error - " . curl_error($ch) . "\n";
  40. } else {
  41. $duration = round(($end - $start) * 1000, 2); // Time in ms
  42. echo "Request $i: HTTP $httpCode | clientRefId: $clientRefId | Time: {$duration}ms\n";
  43. // Uncomment below to print response
  44. // echo "Response: $response\n";
  45. }
  46.  
  47. curl_close($ch);
  48.  
  49. // Optional: slight delay to avoid rate limits or rapid-fire requests
  50. }
Success #stdin #stdout 0.34s 26476KB
stdin
Standard input is empty
stdout
Request 1: cURL Error - Could not resolve host: api.sovapay.in
Request 2: cURL Error - Could not resolve host: api.sovapay.in
Request 3: cURL Error - Could not resolve host: api.sovapay.in
Request 4: cURL Error - Could not resolve host: api.sovapay.in
Request 5: cURL Error - Could not resolve host: api.sovapay.in
Request 6: cURL Error - Could not resolve host: api.sovapay.in
Request 7: cURL Error - Could not resolve host: api.sovapay.in
Request 8: cURL Error - Could not resolve host: api.sovapay.in
Request 9: cURL Error - Could not resolve host: api.sovapay.in
Request 10: cURL Error - Could not resolve host: api.sovapay.in
Request 11: cURL Error - Could not resolve host: api.sovapay.in
Request 12: cURL Error - Could not resolve host: api.sovapay.in
Request 13: cURL Error - Could not resolve host: api.sovapay.in
Request 14: cURL Error - Could not resolve host: api.sovapay.in
Request 15: cURL Error - Could not resolve host: api.sovapay.in
Request 16: cURL Error - Could not resolve host: api.sovapay.in
Request 17: cURL Error - Could not resolve host: api.sovapay.in
Request 18: cURL Error - Could not resolve host: api.sovapay.in
Request 19: cURL Error - Could not resolve host: api.sovapay.in
Request 20: cURL Error - Could not resolve host: api.sovapay.in
Request 21: cURL Error - Could not resolve host: api.sovapay.in
Request 22: cURL Error - Could not resolve host: api.sovapay.in
Request 23: cURL Error - Could not resolve host: api.sovapay.in
Request 24: cURL Error - Could not resolve host: api.sovapay.in
Request 25: cURL Error - Could not resolve host: api.sovapay.in
Request 26: cURL Error - Could not resolve host: api.sovapay.in
Request 27: cURL Error - Could not resolve host: api.sovapay.in
Request 28: cURL Error - Could not resolve host: api.sovapay.in
Request 29: cURL Error - Could not resolve host: api.sovapay.in
Request 30: cURL Error - Could not resolve host: api.sovapay.in
Request 31: cURL Error - Could not resolve host: api.sovapay.in
Request 32: cURL Error - Could not resolve host: api.sovapay.in
Request 33: cURL Error - Could not resolve host: api.sovapay.in
Request 34: cURL Error - Could not resolve host: api.sovapay.in
Request 35: cURL Error - Could not resolve host: api.sovapay.in
Request 36: cURL Error - Could not resolve host: api.sovapay.in
Request 37: cURL Error - Could not resolve host: api.sovapay.in
Request 38: cURL Error - Could not resolve host: api.sovapay.in
Request 39: cURL Error - Could not resolve host: api.sovapay.in
Request 40: cURL Error - Could not resolve host: api.sovapay.in
Request 41: cURL Error - Could not resolve host: api.sovapay.in
Request 42: cURL Error - Could not resolve host: api.sovapay.in
Request 43: cURL Error - Could not resolve host: api.sovapay.in
Request 44: cURL Error - Could not resolve host: api.sovapay.in
Request 45: cURL Error - Could not resolve host: api.sovapay.in
Request 46: cURL Error - Could not resolve host: api.sovapay.in
Request 47: cURL Error - Could not resolve host: api.sovapay.in
Request 48: cURL Error - Could not resolve host: api.sovapay.in
Request 49: cURL Error - Could not resolve host: api.sovapay.in
Request 50: cURL Error - Could not resolve host: api.sovapay.in
Request 51: cURL Error - Could not resolve host: api.sovapay.in
Request 52: cURL Error - Could not resolve host: api.sovapay.in
Request 53: cURL Error - Could not resolve host: api.sovapay.in
Request 54: cURL Error - Could not resolve host: api.sovapay.in
Request 55: cURL Error - Could not resolve host: api.sovapay.in
Request 56: cURL Error - Could not resolve host: api.sovapay.in
Request 57: cURL Error - Could not resolve host: api.sovapay.in
Request 58: cURL Error - Could not resolve host: api.sovapay.in
Request 59: cURL Error - Could not resolve host: api.sovapay.in
Request 60: cURL Error - Could not resolve host: api.sovapay.in
Request 61: cURL Error - Could not resolve host: api.sovapay.in
Request 62: cURL Error - Could not resolve host: api.sovapay.in
Request 63: cURL Error - Could not resolve host: api.sovapay.in
Request 64: cURL Error - Could not resolve host: api.sovapay.in
Request 65: cURL Error - Could not resolve host: api.sovapay.in
Request 66: cURL Error - Could not resolve host: api.sovapay.in
Request 67: cURL Error - Could not resolve host: api.sovapay.in
Request 68: cURL Error - Could not resolve host: api.sovapay.in
Request 69: cURL Error - Could not resolve host: api.sovapay.in
Request 70: cURL Error - Could not resolve host: api.sovapay.in
Request 71: cURL Error - Could not resolve host: api.sovapay.in
Request 72: cURL Error - Could not resolve host: api.sovapay.in
Request 73: cURL Error - Could not resolve host: api.sovapay.in
Request 74: cURL Error - Could not resolve host: api.sovapay.in
Request 75: cURL Error - Could not resolve host: api.sovapay.in
Request 76: cURL Error - Could not resolve host: api.sovapay.in
Request 77: cURL Error - Could not resolve host: api.sovapay.in
Request 78: cURL Error - Could not resolve host: api.sovapay.in
Request 79: cURL Error - Could not resolve host: api.sovapay.in
Request 80: cURL Error - Could not resolve host: api.sovapay.in
Request 81: cURL Error - Could not resolve host: api.sovapay.in
Request 82: cURL Error - Could not resolve host: api.sovapay.in
Request 83: cURL Error - Could not resolve host: api.sovapay.in
Request 84: cURL Error - Could not resolve host: api.sovapay.in
Request 85: cURL Error - Could not resolve host: api.sovapay.in
Request 86: cURL Error - Could not resolve host: api.sovapay.in
Request 87: cURL Error - Could not resolve host: api.sovapay.in
Request 88: cURL Error - Could not resolve host: api.sovapay.in
Request 89: cURL Error - Could not resolve host: api.sovapay.in
Request 90: cURL Error - Could not resolve host: api.sovapay.in
Request 91: cURL Error - Could not resolve host: api.sovapay.in
Request 92: cURL Error - Could not resolve host: api.sovapay.in
Request 93: cURL Error - Could not resolve host: api.sovapay.in
Request 94: cURL Error - Could not resolve host: api.sovapay.in
Request 95: cURL Error - Could not resolve host: api.sovapay.in
Request 96: cURL Error - Could not resolve host: api.sovapay.in
Request 97: cURL Error - Could not resolve host: api.sovapay.in
Request 98: cURL Error - Could not resolve host: api.sovapay.in
Request 99: cURL Error - Could not resolve host: api.sovapay.in
Request 100: cURL Error - Could not resolve host: api.sovapay.in