查看和设置 Safari/Chrome 的 HTTP 标头 [英] View and Set HTTP headers for Safari/Chrome

查看:70
本文介绍了查看和设置 Safari/Chrome 的 HTTP 标头的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在测试一个 API,我想用 safari 命中它并查看返回的原始 json.API 要求每个请求都发送一个特定的 HTTP 标头.是否可以在 Safari 或 Chrome 中设置访问 URL 时的 http 标头?

I'm testing an API and I would like to hit it with safari and see the raw json that's returned. The API requires a certain HTTP header be sent with every request. Is there a way in Safari or Chrome to set my http headers when visiting a URL?

推荐答案

有几个 Google Chrome 应用程序可以做到这一点.一种称为 Rest Console.我实际上在 Mac AppStore 中发现了一个名为 GraphicalHttpClient 的应用程序,它更容易也更有趣使用.

There are a couple Google Chrome apps that do this. One is called Rest Console. I actually found an app called GraphicalHttpClient in the Mac AppStore that's a lot easier and more enjoyable to use.

这篇关于查看和设置 Safari/Chrome 的 HTTP 标头的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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