J. Landman Gay wrote:

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!!


Ah, so it was a header issue after all.

--
 Richard Gaskin
 Fourth World
 LiveCode training and consulting: http://www.fourthworld.com
 Webzine for LiveCode developers: http://www.LiveCodeJournal.com
 LiveCode Journal blog: http://LiveCodejournal.com/blog.irv

_______________________________________________
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