« Previous Next »
Last post 12-11-2008 8:52 AM by edigar. 4 replies.
Average Rating Rate It (5)Thank you for the rating!
Page 1 of 1 (5 items)
Sort Posts: Oldest to newest Newest to oldest
Hi,
with ISAPI filter, we could normalize an url using support function SF_REQ_NORMALIZE_URL.I would like to know how to normalize an url in native modules.
Any url you receive from IIS should be normalized (unlike SF_NOTIFY_PRE_PROC filters in earlier IIS versions) and urls you provide to IIS (via SetUrl) will be normalized by IIS - what else do you need to normalize?
Thanks.I was not aware of it.
I am trying to retrieve the URL in BeginRequest Notification by using
IHttpRequest->GetHeader("URL",&length);
But the length is always returned as ZERO.Please let me know if i am doing anything wrong
url is not a header and the special header names from ISAPI filters do not exist for the native API interface any more. You can get the url using IHttpRequest->GetRawHttpRequest()->CookedUrl.pAbsPath (and AbsPathLength).
Thanks a lot Anil.