Is it possible to pass HTTP headers in the URL itself?

[亡魂溺海] 提交于 2020-01-04 05:13:31

问题


For example: if i wanted to pass Content-Type as application/json in the url itself, how would I do that?

I do know about Postman, but have not used it much. I was wondering if I could just do what I need from chrome itself, without needing to use POSTMAN.


回答1:


No, you can't. HTTP standard has no way to do that.

But you can run JS with ajax request with you headers from address bar via bookmarklets mechanism.

https://en.wikipedia.org/wiki/Bookmarklet

Possible to run Javascript from address bar (bookmarklet) within Google Chrome's settings panel?



来源:https://stackoverflow.com/questions/36774227/is-it-possible-to-pass-http-headers-in-the-url-itself

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!