CComQIPtr<IHTMLDocument2, &IID_IHTMLDocument2> spDoc(spDocDisp);
CComBSTR referrer;
hr = spDoc->get_referrer(&referrer);
为什么有时候得到的referrer是空呢,我通过捕捉发送的http数据,找到的http请求信息里面的referrer不为空
msdn上描述:
This property returns a value only when the user reaches the current page through a link from the previous page. Otherwise,
document.
referrer returns an empty string; it also returns an empty string when the link is from a secure site.
请问有什么原因会造成这个问题么