Recension av Firefox-användare 13847856
Betygsatt 3 av 5
av Firefox-användare 13847856, för 8 år sedanNice, 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.
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.
Utvecklarens svar
postad för 8 år sedanHi, 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
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
105 recensioner
- Betygsatt 5 av 5av Firefox-användare 19010092, för 5 månader sedan
- Betygsatt 5 av 5av Firefox-användare 17436936, för ett år sedan
- Betygsatt 5 av 5av msajadi832, för ett år sedan
- Betygsatt 5 av 5av Firefox-användare 15313516, för ett år sedan
- Betygsatt 5 av 5av Firefox-användare 18253713, för 2 år sedan
- Betygsatt 4 av 5av Олексій, för 2 år sedanOkay, but the JSON response fields containing text in Russian are displayed as strange characters.
- Betygsatt 5 av 5av Firefox-användare 18115635, för 2 år sedan
- Betygsatt 5 av 5av Erick, för 2 år sedan
- Betygsatt 5 av 5av Miguel Conde, för 3 år sedan
- Betygsatt 5 av 5av Firefox-användare 12924248, för 3 år sedan
- Betygsatt 5 av 5av harl windwolf, för 3 år sedanExcellent add-on functionality, does exactly what I expected. Also, excellent description concerning its permissions, which provides the transparency that I'd wish to see with every add-on. Danke!
- Betygsatt 5 av 5av felipecontrerass, för 3 år sedan
- Betygsatt 5 av 5av Firefox-användare 14678933, för 3 år sedan
- Betygsatt 4 av 5av Firefox-användare 17505828, för 3 år sedanI cannot install the add-on in Firefox (v103, Win 10 64bit).
I am installing from add-ons in firefox but it says "Installation aborted because the add-on is corrupted" and "This add-on is not actively monitored for security by Mozilla. Make sure you trust it before installing it."
while it is strange that on win8 32bit installed without a problem (?)Utvecklarens svar
postad för 3 år sedanSorry for the late reply. I can't reproduce the issue, either. My best guess is that the file may got corrupted during download. Do you see the same issue after restarting Firefox? - Betygsatt 5 av 5av Xenthys, för 3 år sedan
- Betygsatt 5 av 5av Firefox-användare 17444643, för 3 år sedan
- Betygsatt 5 av 5av Roma657, för 3 år sedan
- Betygsatt 5 av 5av Mahdi Magroun, för 4 år sedan
- Betygsatt 5 av 5av Cyrille37, för 4 år sedan
- Betygsatt 5 av 5av Firefox-användare 13329218, för 4 år sedan
- Betygsatt 5 av 5av Oleg Kyiashko, för 4 år sedan