我有一个简单的href
链接html
<a href="www.google.com">Apparently you can find things here</a>
Run Code Online (Sandbox Code Playgroud)
但是我想在请求中添加一个http请求标头?
这可能吗.
您能详细说明您要做什么吗?
我不认为可以通过链接指定请求标头。您可以使用以下符号将GET参数发送到目标站点:
www.google.com?q=searchterm
Run Code Online (Sandbox Code Playgroud)
第一个GET参数与网址之间用问号(?)分隔,之后,每个其他参数都应使用&符号分隔,如下所示:
www.google.com?q=searchterm&otherparam=value&otherotherparam=value
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
62796 次 |
最近记录: |