From: Robert W. <bwi...@no...> - 2000-11-29 23:17:19
|
Did the interoperability problem between CGI.pm and TclHttpd ever get resolved? To re-cap the issue: I'm trying to use faq-o-matic (http://www.dartmouth.edu/~jonh/ff-serve/cache/1.html) with tcl-httpd, but I get malformed urls from it. It works fine from apache. The problem is that all URLs it generates (from forms or whatever) have the initial part of the URL prepended. For example, if I start it with http://www.xxx.com/cgi-bin/fom.cgi, I'll get urls like this: http://www.xxx.comhttp://www.xxx.com/cgi-bin/fom.cgi?cmd=install&step=&temppass=xyzzy&Submit=Submit I've narrowed this down to the Perl CGI library. Here is a test CGI: #!/usr/local/bin/perl use CGI qw/:standard/; $cgi = new CGI; $cgiUrl = $cgi->url(); print header; print start_html('CGI->url bug demo'); print h2("CGI version: ".$CGI::VERSION); print h2("CGI->url(): ".$cgiUrl); print end_html; On tclhttpd I get: CGI version: 2.56 CGI->url(): http://www.xxx.comhttp://www.xxx.com/cgi-bin/cgitest.cgi On Apache I get: CGI version: 2.56 CGI->url(): http://www.xxx.com/bcc/cgi-bin/cgitest.cgi Any ideas why? Is is just me? -- Robert Withrow -- (+1 978 288 8256) BWi...@Ba... |