BareMetal.com

Baremetal
My Account
Domain Registration Management Services
Web Services
Rates and Specs
Bulk Rates
CGI Library
FAQ
Order Form
Tech Support
Billing Info
Company Info
Charities
Legal Info
Employment
Privacy Statement

BM


Web Services

Random CGI;

Return CGI Library

This is a fairly simple tool which allows you to generate A link to a random page.

Using this tool is very simple. You need to create a file that has the "random" URLS. The gadget will pick ONE LINE from this file.

The magic line to include in your HTML page is:
<a href="/cgi-bin/random2/urltofile"> random link </a>

The random text file:

/gadgets/
/www/
/index.html

Example:

Here is the random link.
Here is the file of links.

By url to file, I mean the path that you have to type in to get the server to give you the file. This could be ~tbrown/some/dir/filename, or /some/dir/filename if you're running a virtual server.

The above two examples would be coded as:
<a href="/cgi-bin/random2/~tbrown/some/dir/filename"> random link </a>
<a href="/cgi-bin/random2/some/dir/filename"> random link </a>


It seems that the browsers (at least Netscape 1.x) handle different types of links differently. In the above file, the http://www.baremetal.com link is the only one that the browser shows the true url for. With the others, the browser shows the URL as /cgi-bin/random2/gadgets/random2.rnd.

Oops. I think this is probably a server issue. The server handles the redirects internally when it can. The complete URLS have to go back to the client to be interpreted, so tht's why the URL gets updated on the clients screen. [We're using apache here.]





 
Home Page    Domain Registration Services    Web Services    Technical Support
About Baremetal    Privacy Statement    Billing Info    Charities
My Account    Legal Info    Search BareMetal

Copyright 1996-2012, BareMetal.com Inc.
Last updated: Thursday, 28-May-2015 16:14:47 PDT
Last Accessed from: No-one!
Questions and comments to support@baremetal.com