On 5/2/12 4:54 AM, dirk cleenwerck wrote:
Good morning,

Does this help.

http://oreilly.com/openbook/cgi/ch03_07.html

Yes! Yes it does!! Excitement, happiness, joy joy!

In the simulator at least, this WORKS!!!:

on startup
    read from stdin until empty
    put it into tOrderData
    LOG the long time && "Received:" && tOrderData
    put "cmd=_notify-validate&" before tOrderData -- required response
    put "https://www.sandbox.paypal.com/cgi-bin/webscr"; into tPPAddr
    put "curl --data" &&quote& tOrderData &quote&& tPPAddr into tPostCmd
    put shell(tPostCmd) into tCurlRslt
    put last word of tCurlRslt into tResponse -- "VERIFIED"
    put "Status: 200 OK" &cr&cr -- > Magic line!
    put "ok"
    LOG the long time && "Response:" && tResponse
end startup


Hahahahahahaha!!

I'm afraid to try the real button...

Thank you.

--
Jacqueline Landman Gay         |     jac...@hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com

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

Reply via email to