【发布时间】:2016-08-14 22:16:06
【问题描述】:
例如:如果我想在 url 本身中将 Content-Type 传递为 application/json,我该怎么做?
我确实知道 Postman,但没怎么用过。我想知道我是否可以从 chrome 本身做我需要的事情,而不需要使用 POSTMAN。
【问题讨论】:
标签: http url http-headers postman
例如:如果我想在 url 本身中将 Content-Type 传递为 application/json,我该怎么做?
我确实知道 Postman,但没怎么用过。我想知道我是否可以从 chrome 本身做我需要的事情,而不需要使用 POSTMAN。
【问题讨论】:
标签: http url http-headers postman
不,你不能。 HTTP 标准无法做到这一点。
但是你可以通过书签机制从地址栏运行带有 ajax 请求的 JS。
https://en.wikipedia.org/wiki/Bookmarklet
Possible to run Javascript from address bar (bookmarklet) within Google Chrome's settings panel?
【讨论】: