Avis de Utilisateur ou utilisatrice 13847856 de Firefox
Noté 3 sur 5
par Utilisateur ou utilisatrice 13847856 de Firefox, il y a 8 ansNice, 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.
Réponse du développeur
mis en ligne : il y a 8 ansHi, 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
108 notes
- Noté 5 sur 5par Daniel V. Lenskiy, il y a 5 mois
- Noté 5 sur 5par Seän "frostbyte" Shepherd, il y a 9 mois
- Noté 5 sur 5par Utilisateur ou utilisatrice 19010092 de Firefox, il y a un an
- Noté 5 sur 5par Utilisateur ou utilisatrice 17436936 de Firefox, il y a 2 ans
- Noté 5 sur 5par msajadi832, il y a 2 ans
- Noté 5 sur 5par Utilisateur ou utilisatrice 15313516 de Firefox, il y a 2 ans
- Noté 5 sur 5par Utilisateur ou utilisatrice 18253713 de Firefox, il y a 3 ans
- Noté 4 sur 5par Олексій, il y a 3 ansOkay, but the JSON response fields containing text in Russian are displayed as strange characters.
- Noté 5 sur 5par Utilisateur ou utilisatrice 18115635 de Firefox, il y a 3 ans
- Noté 5 sur 5par Erick, il y a 3 ans
- Noté 5 sur 5par Miguel Conde, il y a 4 ans
- Noté 5 sur 5par Utilisateur ou utilisatrice 12924248 de Firefox, il y a 4 ans
- Noté 5 sur 5par harl windwolf, il y a 4 ansExcellent 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!
- Noté 5 sur 5par felipecontrerass, il y a 4 ans
- Noté 5 sur 5par Utilisateur ou utilisatrice 14678933 de Firefox, il y a 4 ans
- Noté 4 sur 5par Utilisateur ou utilisatrice 17505828 de Firefox, il y a 4 ansI 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 (?)Réponse du développeur
mis en ligne : il y a 4 ansSorry 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? - Noté 5 sur 5par Xenthys, il y a 4 ans
- Noté 5 sur 5par Utilisateur ou utilisatrice 17444643 de Firefox, il y a 4 ans
- Noté 5 sur 5par Roma657, il y a 4 ans
- Noté 5 sur 5par Mahdi Magroun, il y a 4 ans