对于Safari /铬查看和设置HTTP头 [英] View and Set HTTP headers for Safari/Chrome

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

问题描述

我测试的API,我想使用Safari打它,看到的返回的原始JSON。该API需要一定的HTTP头中每个请求发送。有没有在Safari或Chrome的方式访问一个网址时,我设置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?

推荐答案

有一对夫妇的谷歌浏览器的应用程序,做到这一点。一个是所谓的Rest控制台
我居然发现所​​谓的 GraphicalHttpClient 在Mac AppStore的应用程序,这是一个极大的方便,更愉快使用。

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 /铬查看和设置HTTP头的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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