Troubleshooting of curl errors: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
No edit summary
mNo edit summary
Line 331: Line 331:
PHP code:
PHP code:
<pre>
<pre>
$is_windows = strtoupper(substr(PHP_OS, 0, 3)) ===== 'WIN';
$is_windows = strtoupper(substr(PHP_OS, 0, 3)) === 'WIN';
if ($is_windows) {
if ($is_windows) {
     $command = sprintf('-d "{\"key\":\"%s\"}"', $value);
     $command = sprintf('-d "{\"key\":\"%s\"}"', $value);

Navigation menu