![]() |
|
Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
CGI::Application + Net::HTTPServerby gryphon (Abbot) |
on Jun 06, 2005 at 04:36 UTC ( #463825=CUFP: print w/replies, xml ) | Need Help?? |
Greetings fellow monks, A while back, I posted about trying to wrap an existing CGI::Application web app inside a Net::HTTPServer script without making any modifications to the CGI::Application app's code. After some hacking, I think I've come up with something that mostly works. I've tested it for GET, POST, cookies, and redirects. It seems to do OK. There's one known bug: It doesn't save multiple cookies in a single request due to (what I think is) a bug in how Net::HTTPServer handles headers. So you can only save one cookie at a time for now.
As always, I'm interested in any rewrites or suggestions you folks have. Thanks. gryphon Janitored by holli - added readmore tags
Back to
Cool Uses for Perl
|
|