106 recensioni
- Valutata 3 su 5di Utente Firefox 13847856, 8 anni faNice, but does not send GET request with body.
site/elements/data/scripts/request.js:
if (request.method.toLowerCase() !== 'head' && request.method.toLowerCase() !== 'get') {
init.body = requestBody;
}
Update:
I don't have much experieces with node.js, but...
Maybe it can be achieved with socket.io and emulate http protocol?
I wanted to use your extension for doing requests to elasticsearch, it uses GET and in http body is json.Replica dello sviluppatore
pubblicato il 8 anni faHi, thanks for taking the time to dig into this issue. Unfortunately it is by design and there is no way to fix it (that I know of).
RESTer is a browser extension and the browser provides two ways of sending HTTP requests:
1. XMLHttpRequest: This ignores any specified body and sets it to null when the method is GET or HEAD.
2. fetch: This throws a TypeError when you specifiy a body and the method is GET or HEAD.
Browsers have good reason to do so. While, according to the HTTP/1.1 spec, you are allowed to send a request body with a GET or HEAD request, the server is advised to ignore the body when handling the request. See here for a good explanation:
https://stackoverflow.com/a/983458/1798215
That said, if you have ideas on how to handle this better, please let me know. I am definitely open to suggestions. Post them on GitHub or send me an email:
https://github.com/frigus02/RESTer/issues - Valutata 5 su 5di Utente Firefox 13842970, 8 anni fa
- Valutata 5 su 5di Utente Firefox 13819094, 8 anni faThis was exactly what I was looking for, plus the fact that it has a very nice interface.
- Valutata 5 su 5di Utente Firefox 13801124, 8 anni fa
- Valutata 5 su 5di Utente Firefox 13782030, 8 anni fa
- Valutata 5 su 5di Utente Firefox 12748157, 8 anni fa
- Valutata 4 su 5di Rodrigo Flores, 8 anni faThere are some things you need to add to this addon:
1)Export/Import Request
2)Change the request title background color for the dark theme
3)Save cookies value as variablesReplica dello sviluppatore
pubblicato il 8 anni faThanks for the review and the suggestions.
1) I'm already working on Export/Import functionality. It will take a bit of time to finish this, though.
2) I will think about changing the color or making it configurable but I consider this low priority. Let me know if this very important for you.
3) That's a great idea and something I have thought of as well. I definitely want to add something like this in the future.
One last note: RESTer is open source. If you like to contribute and add a certain feature, head over to https://github.com/frigus02/RESTer and open a pull request. I'm happy to help if you encounter any issues. - Valutata 5 su 5di Utente Firefox 13643499, 8 anni faNice - just what was needed. Great color scheme too. Clean and simple to use.
Thanks! - Valutata 5 su 5di Utente Firefox 13510260, 8 anni faNice product, with useful features! I'm giving this 5-stars even though the UI could use an improvement in the "AUTHORIZATION" section; sometimes authorization tokens can be really long, and when I saved my custom authorization, it showed up under "Use existing tokens" with no wrapping, extending the page horizontally and making it hard to use the buttons attached to the item.
- Valutata 5 su 5di Utente Firefox 13471360, 8 anni faThank you for this nice tool. It would be great to add a feature to trim the body of POST requests. So if you want to add human readable and formated JSON string sometimes you need to remove all spaces and tabs because memory restricted system do not have space to receive it with it.
- Valutata 5 su 5di Utente Firefox 13414121, 8 anni fa