106 筆評論
- 評價 3 分,滿分 5 分來自 Firefox 使用者 13847856,8 年前Nice, 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.開發者回應
張貼於 8 年前Hi, 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 - 評價 5 分,滿分 5 分來自 Firefox 使用者 13842970,8 年前
- 評價 5 分,滿分 5 分來自 Firefox 使用者 13819094,8 年前This was exactly what I was looking for, plus the fact that it has a very nice interface.
- 評價 5 分,滿分 5 分來自 Firefox 使用者 13801124,8 年前
- 評價 5 分,滿分 5 分來自 Firefox 使用者 13782030,8 年前
- 評價 5 分,滿分 5 分來自 Firefox 使用者 12748157,8 年前
- 評價 4 分,滿分 5 分來自 Rodrigo Flores,8 年前There 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 variables開發者回應
張貼於 8 年前Thanks 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. - 評價 5 分,滿分 5 分來自 Firefox 使用者 13643499,8 年前Nice - just what was needed. Great color scheme too. Clean and simple to use.
Thanks! - 評價 5 分,滿分 5 分來自 Firefox 使用者 13510260,8 年前Nice 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.
- 評價 5 分,滿分 5 分來自 Firefox 使用者 13471360,8 年前Thank 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.
- 評價 5 分,滿分 5 分來自 Firefox 使用者 13414121,8 年前