• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: ACGI form parsing in OSX?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: ACGI form parsing in OSX?
      • From: James Sentman <email@hidden>
References: 
 >Re: ACGI form parsing in OSX? (From: James Sentman <email@hidden>)

  • Prev by Date: Pause script until application is finished
  • Next by Date: Re: How to coerce a real to an integer in X?
  • Previous by thread: Re: ACGI form parsing in OSX?
  • Next by thread: Re: ACGI form parsing in OSX?
  • Index(es):
    • Date
    • Thread