开发者

Add "referer" to header when using ShellExecute

开发者 https://www.devze.com 2023-02-12 15:21 出处:网络
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.

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

精彩评论

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