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?
Turn on the "Develop" menu in Safari Preferences, then choose "Show Web Inspector" from the "Develop" menu. Click "Resources". Select the resource you want to inquire about and click "Headers". Thanks for that.
Modify Headeropen Chrome developers toolbar Option + ⌘ + J (on macOS), or Shift + CTRL + J (on Windows/Linux). Press Command+Shift+P (Mac) or Control+Shift+P (Windows, Linux, Chrome OS) to open the Command Menu. In the User agent section disable the Select automatically checkbox.
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.
Another popular chrome app for this is is Postman
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With