[users@httpd] Newbie CGI: nested href

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I wrote a CGI that opens an html file, reads it and sends
it out (with some modification).  Now these files contain
relative links of the form:
   <a href="someFile.html">something</a>
Now when the client clicks on "something", only the relative
paths appear to the CGI, and I cannot open the file.

What should I do?
1. I could carry the last path in a cookie and construct
   the full path.  But this would only work for nodes
   that accept cookies.

2. I could change all the paths to absolute.  Much much
   work.

Any better suggestions?

Thanks in advance.
Mike.


--
Michael D. Berger
m.d.berger@xxxxxxxx 



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux