简体   繁体   English

在不使用插件的情况下向 Firefox HTTP 请求添加标头

[英]Adding Headers to Firefox HTTP Request without Using PlugIns

I have Firefox version 52.1.我有 Firefox 版本 52.1。 I cannot udpate to newer version, nor can I add plugins that people ordinarily install to address these issues.我不能更新到更新的版本,也不能添加人们通常安装的插件来解决这些问题。

I am calling some rest services that require communicating that these are POST request plus a couple of other things ordinarily communicated through hearder information.我正在调用一些 rest 服务,这些服务需要传达这些是 POST 请求以及通常通过听众信息传达的其他一些事情。

What options do I have for adding these specific header requirements to my Firefox request assuming I cannot add plugins or upgrade to a newer version of the browser?假设我无法添加插件或升级到更新版本的浏览器,我有什么选择可以将这些特定的 header 要求添加到我的 Firefox 请求中? Thank you.谢谢你。

Ok, so simply by opening the very basic developer tools (ie press F12), then executing the request (which will fail because it is missing header info), then selecting the network tab in the tool followed by the All within the Network frame, it shows the failure info. 好的,只需打开非常基本的开发人员工具(即按F12),然后执行请求(由于缺少标题信息而失败),然后选择工具中的网络选项卡,然后选择网络框架中的全部,它显示了失败信息。 Then I can select the default method value (GET) in the table of the attempted request, it will open a frame of the right of the tool. 然后我可以在尝试请求的表中选择默认方法值(GET),它将打开工具右侧的框架。 This frame has a header tab whose frame allows you to modify the header by clicking the Edit and Resend button. 此框架具有标题选项卡,其框架允许您通过单击“编辑并重新发送”按钮来修改标题。 Click that button and then add the additional needed header params. 单击该按钮,然后添加其他所需的标题参数。 then click the resend button. 然后单击重新发送按钮。

Another option is to use Postman. Especially when you're going to do this on a regular basis.另一种选择是使用 Postman。尤其是当您要定期这样做时。 I started out using just the browser like you, but it got pretty cumbersome, so I switched to Postman. web.postman.co我开始只使用像你一样的浏览器,但它变得非常麻烦,所以我切换到Postman。web.postman.co

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM