[Project_owners] URI to page conversions

Neil neil at parkwaycc.co.uk
Sat Feb 14 12:24:06 EST 2004

Ben Bucksch wrote:

> HJ wrote:
>> I've got this URI:
>> https://***.***.***/***/***/***/index.jsp?su=***&spw=***
>> but only need: index.jsp
>> What can/should I use for this?
> Create a URI (using nsIIOService) and get the filename from nsIURI. 
> Unfortunately, it gives you only the path, not the filename, but that 
> removes most of the troubles of the non-trivial URI parsing already.
> <http://lxr.mozilla.org/seamonkey/source/netwerk/base/public/nsIURI.idl>

Better still, QI your URI to a URL and get the filename directly.

More information about the Project_owners mailing list