Re: ACGI form parsing in OSX?
Re: ACGI form parsing in OSX?
- Subject: Re: ACGI form parsing in OSX?
- From: Reinhold Penner <email@hidden>
- Date: Fri, 1 Feb 2002 07:38:34 -1000
James,
If you want to rewrite your program in perl or php then that code will
work just fine, (you can even contract me to do it if you want;) but
you cannot launch osascript or any other carbon/cocoa app when running
as the web server.
You misunderstood. I do have this thing as a Perl script and it works
just fine. What I want to do is to use my Apache server to trigger a cgi
handler inside an ASS app. I thought this is what your acgi bridge does.
I know that Apple already provides this bridge for their own server
software, but not for Apache. The reason I haven't downloaded your
solution is that it doesn't work right out of the box (user needs to
install it) and that you have announced it as shareware. Since I can do
what I want with the Perl script, there just isn't enough incentive for
me to get your ACGI app. I also understand that Apple is about to give
us the Apache-ACGI bridge anyway.
My point about the URL decoding was that in the absence of regular
expressions in AS, a do shell script with regular expressions would be
handy. So I've played a bit in the Terminal, but can't find the correct
way of getting this to work. The closest I've come is the following:
'just a test' | perl s|%([a-fA-F0-9]{2})|chr(hex($1))|ge
--> badly placed ()'s.
I really don't know where the problem is, since this thing works just
fine in my Perl script and the parens look fine to me.
-Reinhold