首页 > 解决方案 > 在 URL 中包含标题

问题描述

我有一个允许下载文件的网址,例如:

https://mysystem.department.company/u/userid/projectid/raw/fileid/filename.csv?inline=false

由于我公司的各种异常,我需要将以下标头字段直接添加到 url 中(因为 PowerBI 服务器无法识别在 Web 连接中本地添加的标头)。

有什么方法可以将标头 'X-API-KEY'= 'XXX123' 直接添加到 URL 中?我试过 https://mysystem.department.company/u/userid/projectid/raw/fileid/filename.csv?inline=false&X-API-KEY=XXX123没有成功。

干杯

标签: httpwebheaderpowerbi

解决方案


不,URL 和请求标头字段是分开的。


推荐阅读