Debugging on On-Rev - I don't GET it

Terry Vogelaar tvogelaar at de-mare.nl
Fri Sep 18 04:50:09 EDT 2009


I don't understand how to debug an irev file when form input is  
involved.

Here it the case:
I want to pick data up from a CGI driven HTML page. But my irev script  
needs to do some preprocessing first.
So I made a script "preprocess.irev" and I began to try just passing  
whatever this script GETs:
I tried "preprocess.irev?id18=1&m=eph+1%3A1-5%3A1" with the following  
script:
<?rev
put $_GET into sGET
combine sGET using "&"
put "script.cgi?set=5&lang=en&pos=0&nobar=1&t=4&" & urlencode(sGET)  
into varZ
put url varZ
?>

It returned "Bad request". But when I hardcoded in exactly the same  
values, it worked:
<?rev
put "id18=1&m=eph+1%3A1-5%3A1"into sGET
put "http://www.biblija.net/biblija.cgi? 
lang=en&set=5&pos=0&nobar=1&t=4&" & sGET into varZ
put url varZ
?>

I wanted to insert a breakpoint, but then I realized I didn't knew how  
to debug this because of the additional data in the url. Any solutions?

Terry



More information about the use-livecode mailing list