Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 09-06-2005, 05:08 AM   #1
Registered: Jan 2004
Location: Berne, Switzerland
Distribution: FC4, Gentoo
Posts: 112

Rep: Reputation: 15
Redirects in Zope (ZMS)

I'm doing a new version of a homepage in ZMS, a content managment system for zope.
But I have also some perl CGI applications that I'd like to integrate into the new webpage.
I used to integrate them into a php menu system in the old homepage. I was using a function like the one below to redirect all get/post requests to the perl CGI application, upon a certain trigger string in a request.
Is something like this also possible in zope? And if yes, how? Thanks for any help!

This is the old request redirect function for php:
function post_upload($url) {
        $up=parse_url($url);if(!isset($up["port"])) {$up["port"]=80;}
        foreach($_REQUEST as $key=>$value) {
                if (!is_array($value)) { // arrays contain files
                        if ($makLF1) {$data.="\r\n";}
                        $data.="Content-Disposition: form-data; ";
        foreach($_FILES as $key=>$value) {
                if (($makLF1) and (!$makLF2)) {$data.="\r\n";}
                if ($makLF2) {$data.="\r\n";}
                $data.="Content-Disposition: form-data; ";
                $data.="name=\"$key\"; filename=\"$fn\"";
        $msg ="POST ".$up["path"]." HTTP/1.0\r\n";
        $msg.="Content-Type: multipart/form-data; ";
        $msg.="Connection: close\r\n";
        $msg.="Content-Length: $lenga\r\n\r\n";
        while(!feof($f)) {
            if ($ok) {$result.=$buf;}
            if (preg_match("/^Content-Type/",$buf)) {$ok=1;}
        fclose($f);return $result;


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
virtual host redirects with mod_rewrite sqn Linux - Software 1 10-11-2005 08:47 PM
Trouble installing ZMS (Zope) nyk Linux - Software 1 09-03-2005 07:59 AM
Distro for the 'cafe. Redirects, logins, etc. darknova2k Linux - Distributions 3 03-22-2005 07:05 PM
Apache redirects?! How rincewind Linux - Software 3 02-23-2005 02:43 PM
ICS and 302 redirects don't mix dataangel Linux - Networking 1 08-22-2004 02:36 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:47 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration