How do I manually fire HTTP POST requests with Firefox or Chrome?
I want to test some URLs on a web application I'm working on. For that I would like to manually create HTTP POST requests (meaning I can add whatever parameters I like).
Is there any extension or functionality in Chrome and/or Firefox that I'm missing?
I have been making a Chrome app called Postman for this type of stuff. All the other extensions seemed a bit dated so made my own. It also has a bunch of other features which have been helpful for documenting our own API here.
Postman now also has native apps (ie standalone) for Windows, Mac and Linux! It is more preferable now to use native apps, read more here.
CURL is AWESOME to do what you want ! It's a simple but effective command line tool : https://curl.haxx.se/
Rest implementation test commands :
curl -i -X GET http://rest-api.io/items
curl -i -X GET http://rest-api.io/items/5069b47aa892630aae059584
curl -i -X DELETE http://rest-api.io/items/5069b47aa892630aae059584
curl -i -X POST -H 'Content-Type: application/json' -d '{"name": "New item", "year": "2009"}' http://rest-api.io/items
curl -i -X PUT -H 'Content-Type: application/json' -d '{"name": "Updated item", "year": "2010"}' http://rest-api.io/items/5069b47aa892630aae059584
Forget browser and try CLI. HTTPie is great tool!
CLI http clients:
If you insist on browser extension then:
Chrome :
Firefox :
上一篇: 禁用Chrome缓存以进行网站开发