http://qs321.pair.com?node_id=316146


in reply to Re: Perl web browsers
in thread Perl web browsers

Since my form uses post, I guess it Jellybean wouldn't work.

09 September 2003

I added Jellybean::Container::CGI, a container that allows you to run CGI programs from Jellybean. Yeah, it seems like a weird thing, but it's very handy. It's currently limited to very simple programs — GET is supported. POST is not. Query strings are supported. Cookies are not.

Replies are listed 'Best First'.
Re: Re: Re: Perl web browsers
by chromatic (Archbishop) on Dec 21, 2003 at 22:02 UTC

    Right, if you need to launch an external program via the CGI interface, it doesn't yet support POST. If you invoke it through the Jellybean::Container interface, you can do anything you like.

    That's not to say I can't (or won't) enhance Jellybean::Container::CGI to handle POST requests. It's just that I haven't yet had the need. :)

      Oh...it sounds like it will work now. Unfortunately, I'll have to use Jellybean as motivation to learn more about Perl rather than as a part of my program, for now, since I can't figure out what to do with it. I went all out developing my application after learning just enough Perl to make it possible, and I practically use Perl as a low level language, except for regexes to parse HTML, which won't win me extra points.

      To pass form data to my script on my Windows computer, I decided to try embedding VBScript in my HTML form and using VBScript's FileSystemObject to write a file that my script will read. I heard VBScript is going away, and I don't think FileSystemObject has been around that long, but at least it looks like something I could handle.