An example of POSTing with curl:

function curlPost pData, pURL
  put the tempName into tFile
  put urlEncode(pData) into URL ("binfile:" & tFile)
  put "curl -s --data-binary @" & tFile && pURL into tCurlString
  put shell(tCurlString) into tResponse
  delete file tFile
  return tResponse
end curlPost

Note that it's easier (I find) to put your post data into a file rather than try to pass it to the shell directly.

For more info on using curl : http://curl.haxx.se/docs/manpage.html, or type "man curl" in a terminal window (on mac OS X)

Best,

Mark


On 6 Aug 2007, at 23:32, Robert Mann wrote:

Any info on how this is done?

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Andre Garzia
Sent: Monday, August 06, 2007 10:38 AM
To: How to use Revolution
Subject: Re: Rev CGI Post

Friends,
If you guys are using CGIs for that, usually you can use shell() to call
cURL or wget. I think it's a nice way to talk with PayPal IPN

Cheers
andre



_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to