I've installed PayPal_Framwork and PayPal_Subscriptions.

With it not working I started to trace the code and it got it down one
line that needs to be figured out. It is the exec line in this function in
the paypal_framework module:

function _paypal_post_curl($var = array()) {
$url = variable_get('paypal_post', 'https://www.paypal.com/cgi-bin/webscr');
exec(variable_get('paypal_curl', '/usr/bin/curl') .' -d "'._paypal_post($var)."\" $url", $info);
$info = implode(',', $info);
return $info;
}
I believe that drupal is sending the right information out and nothing is
returning. I believe that the problem from what I can see is a setup
problem with my ISP but without actually knowing what is valid data out and
never having seen what is to be returned, I can't say for sure. Also, if
someone could show what is typical of returned data I could at least "fake
it" in the code to set the rest of the functionality while I wait for the
ISP to figure things out. So, could anyone Please verify that the data
that is getting sent is correct, and give me a sample of what is meant to
be returned? If you are using a method other than "Binary Curl" it
shouldn't matter, there will stil be a call out and a return and the data
wil still be the same. The only difference is that it will be in
either the _paypal_post_libcurl function or the _paypal_post_fsock
function depending on your method of choice.

Below is the code I used to trap the data going out and returing:

This was placed just above the exec(...) line:
file_put_contents( "PAYPAL_IPN.log", " 2--".variable_get('paypal_curl', '/usr/bin/curl') .' -d "'._paypal_post($var)."\" $url"."\r\n", FILE_APPEND );

This was placed just below the exec(...) line:
ob_start(); print(' 3--'); print_r($info); file_put_contents("PAYPAL_IPN.log", ob_get_contents()."\r\n", FILE_APPEND );
ob_end_clean();

The data/command going out from the first line of code above the exec(...) line
is:
/usr/bin/curl -d
"txn_type=subscr_signup&subscr_id=S-9HY27526A9045840U&last_name=Capio+Corporation&residence_country=US&mc_currency=USD&item_name=Gold+Membership&amount3=29.99&recurring=1&verify_sign=AQKNYD8RWShlZ5OqLRdHszzYhZC7A5Fq-6iwxmf2DO.9RXpwHQ19CSkd&payer_status=unverified&test_ipn=1&payer_email=cWebmaster%40CapioGroup.com&first_name=Webmaster&receiver_email=reg%40CapioGroup.com&payer_id=KAXLV6DVNYSEW&reattempt=1&item_number=APD-Gold&subscr_date=22%3A33%3A51+Aug+15%2C+2006+PDT&charset=windows-1252&notify_version=2.1&period3=1+M&mc_amount3=29.99&cmd=_notify-validate"
https://www.sandbox.paypal.com/cgi-bin/webscr

And the data return is:
Array
(
)
Which is the problem. Nothing returning so anyone who can show me what
this looks like when it's working would be very much appreciated. All as
you have to do is use my code and it will write the info. to a file
called: "PAYPAL_IPN.log" in the base directory of your Drupal
installation.

Thanks in advance!