From: J and T (no email)
Date: Fri Aug 30 2002 - 17:48:10 EDT
I asked this question in the users list, but obviously that's not the place
to ask this.
I understand s.htm allows us to do some things, but s.htm doesn't do what I
want to do. Instead I need to make a small modification to the actual code
in datasource.cpp where it presents cached documents which ultimately sends
the output of this to the template (which I might not use anyway).
In the actual code of datasource.cpp, aspseek sends the "BASE" header with
aspseek_printf(r, "<BASE HREF=\"%s\">\n", url.c_str());
The above statement simply prints this at the top of the page so graphics
and everything appear correctly when viewing the cached document. This is
what it prints:
So that means this "url.c_str()" contains the URL for the document being
presented. If this "url.c_str()" means the URL, how can I fetch what I need
so I can do my "own" thing? Information I need to use is:
If I can get this information I would then write something like this in
aspseek_printf(r, "This is the guys URL: \"%s\"<BR>\n", url.c_str());
aspseek_printf(r, "last_modified on: \"%s\"<BR>\n", last_modified.c_str());
aspseek_printf(r, "Charset is: \"%s\"<BR>\n", charset.c_str());
aspseek_printf(r, "Document size is: \"%s\"<BR>\n", docsize.c_str());
I might not even use the template to print the top. Get the idea?
I didn't subscribe to the development list first because I'm not a
developer. I'm just a hacker trying to fetch out specific information about
the document that does not appear to be available in the s.htm (like the
charset of the document). At the time of indexing this information is stored
in the database worldurlnn field name charset. So the information is there,
but how do I get at it?
So that's what I want to do. Can anyone help me?
Join the world’s largest e-mail service with MSN Hotmail.