on 11/27/02 10:41, [EMAIL PROTECTED] purportedly said:

> I've seen some links that create me a lot of problems because I don't know
> how to parse them and break into components.
> 
> An example is:
> 
> http://www.site.com/script.cfm/dir1/dir2/http://www.site.com/file.html
> 
> How is called the part after the script.cfm?
> It is not a query because it doesn't follow after a "?".
> It is not a fragment because it doesn't follow after a "#".
> It is not a real directory, because the file that is executed is script.cfm.
> Please tell me what method from LWP should I use to get this component, and
> what is its name?

>From the perspective of the client, the path part of this URI is:
    /script.cfm/dir1/dir2/http://www.site.com/file.html

The client doesn't need to know that this is really extra directory
information passed to a script, and the client should be able to safely
treat it as the path without error.

If for some reason you personally want to know, it is difficult to reliably
determine that there is a script involved. Take the following case, where
directory "action" is a ScriptAlias:
    http://www.site.com/action/get/page1

"get" can be a script (extensions are unnecessary when using a ScriptAlias),
the part after being extra directory information passed to the script. Even
a person looking at the URL couldn't determine that this is the case.

Keary Suska
Esoteritech, Inc.
"Leveraging Open Source for a better Internet"

Reply via email to