开发者

Add "referer" to header when using ShellExecute

I'm using ShellExecute to open the user's default browser to a specific web site.

I'd like to add a referer field to the URL.

Is this possib开发者_C百科le to do while continuing to use ShellExecute?

If not, any other suggestions to get a users default browser to open a URL with referer?


The referrer is part of the HTTP protocol. ShellExecute opens an app which then processes the URL, by sending an HTTP request. It's that app that specifies the referrer.

The very best you could do would be to include something in the URL and process it at the HTTP server end (presumably you are in control of the server end).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜