Rev CGI Post

Bridger Maxwell bridgeyman at gmail.com
Mon Aug 6 14:40:35 EDT 2007


Hey,  The way you are reading info is for an HTTP GET, I am not sure if that
is how PDT sends the data, but with IPN, the data is sent in an HTTP POST.
 You can check to see how the data is being sent by looking at the
$REQUEST_METHOD global.  Here is my script to read from the POST data:

put empty into gBuffer
  REPEAT until length(gBuffer) >= $CONTENT_LENGTH
    read from stdin until empty
    put it after gBuffer
  END REPEAT
  put "cmd=_notify-validate&" & gBuffer into vReturn


Hope that helps!

  TTFN
    Bridger Maxwell



More information about the use-livecode mailing list