添加“referer”使用ShellExecute时的标题 [英] Add "referer" to header when using ShellExecute

查看:199
本文介绍了添加“referer”使用ShellExecute时的标题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用ShellExecute将用户的默认浏览器打开到特定网站。

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

我想添加一个引用者字段到URL。

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

继续使用ShellExecute时可以做到这一点吗?

Is this possible to do while continuing to use ShellExecute?

如果没有,任何其他建议让用户默认浏览器打开带有referer的URL?

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

推荐答案

引用者是HTTP协议的一部分。 ShellExecute打开一个应用程序,然后通过发送HTTP请求来处理URL。这是指定引用者的应用程序。

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.

您可以做的最好的事情是在URL中包含一些内容并在HTTP服务器端处理它(可能是你在控制服务器端)。

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).

这篇关于添加“referer”使用ShellExecute时的标题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆