Looks like the links to functions (left most column) needs to be fixed as it is pointing to 'localhost' instead of a relative URL. I think Mauricio is working on a local (OBF server) install of DeOfb so that we can hack code and make changes available. I would also like to see if we can use one of the old OBF servers as a CGI test-host so other people can have access to hacking CGIs. --jason stajich 16:57, 4 May 2006 (EDT)
Yep, that 'localhost' URL was my (admittedly naive) best guess at what most end users would want. In deob_interface.cgi, the root URL for deob_detail.cgi's location (which is used in those lefthand column functions links) is set in the
line 215 of deob_interface.cgi:
my $deob_detail_path = 'http://localhost/cgi-bin/deob_detail.cgi';
I've changed it in my copy to be just:
my $deob_detail_path = 'deob_detail.cgi';
so that relative URLs will be made instead.
Great. BTW you can get your relative or absolute through CGI pretty easily (thanks Lincoln) so it doesn't have to be hardcoded to the cgi script name. You probably want -absolute or -relative for this example.
OBTAINING THE SCRIPT'S URL $full_url = $query->url(); $full_url = $query->url(-full=>1); #alternative syntax $relative_url = $query->url(-relative=>1); $absolute_url = $query->url(-absolute=>1); $url_with_path = $query->url(-path_info=>1); $url_with_path_and_query = $query->url(-path_info=>1,-query=>1); $netloc = $query->url(-base => 1); url() returns the script's URL in a variety of formats. Called without any arguments, it returns the full form of the URL, including host name and port number http://your.host.com/path/to/script.cgi You can modify this format with the following named arguments: -absolute If true, produce an absolute URL, e.g. /path/to/script.cgi -relative Produce a relative URL. This is useful if you want to reinvoke your script with different parameters. For example: script.cgi -full Produce the full URL, exactly as if called without any arguments. This overrides the -relative and -absolute arguments. -path (-path_info) Append the additional path information to the URL. This can be combined with -full, -absolute or -relative. -path_info is pro- vided as a synonym. -query (-query_string) Append the query string to the URL. This can be combined with -full, -absolute or -relative. -query_string is provided as a syn- onym. -base Generate just the protocol and net location, as in http://www.foo.com:8000
--jason stajich 09:22, 5 May 2006 (EDT)