Skip to content

Instantly share code, notes, and snippets.

@r15ch13
Created December 27, 2012 15:36
Show Gist options
  • Save r15ch13/4389097 to your computer and use it in GitHub Desktop.
Save r15ch13/4389097 to your computer and use it in GitHub Desktop.
Saferpay cURL Issue
<?php
// Workaround
$cmd = sprintf("curl -F 'spUsername=%s' -F 'spPassword=%s' -F 'UAFState=login' -F 'CustomerID=%s' -F 'file=%s' %s",
'e99867001',
'XAjc3Kna',
'99867',
'@/Users/Test/Sites/saferpay/99867-GL01.IN',
'https://www.saferpay.com/user/FileImport/ScriptUpload.aspx'
);
$result = array();
exec($cmd, $result);
$result = join('', $result);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment