Firefox ユーザー 13847856 によるレビュー
5 段階中 3 の評価
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.
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
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
- 5 段階中 5 の評価Daniel V. Lenskiy によるレビュー (2ヶ月前)
- 5 段階中 5 の評価Seän "frostbyte" Shepherd によるレビュー (6ヶ月前)
- 5 段階中 5 の評価Firefox ユーザー 19010092 によるレビュー (1年前)
- 5 段階中 5 の評価Firefox ユーザー 17436936 によるレビュー (1年前)
- 5 段階中 5 の評価msajadi832 によるレビュー (2年前)
- 5 段階中 5 の評価Firefox ユーザー 15313516 によるレビュー (2年前)
- 5 段階中 5 の評価Firefox ユーザー 18253713 によるレビュー (2年前)
- 5 段階中 5 の評価Firefox ユーザー 18115635 によるレビュー (3年前)
- 5 段階中 5 の評価Miguel Conde によるレビュー (3年前)
- 5 段階中 5 の評価Firefox ユーザー 12924248 によるレビュー (4年前)
- 5 段階中 5 の評価harl windwolf によるレビュー (4年前)Excellent 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!
- 5 段階中 5 の評価felipecontrerass によるレビュー (4年前)
- 5 段階中 5 の評価Firefox ユーザー 14678933 によるレビュー (4年前)
- 5 段階中 4 の評価Firefox ユーザー 17505828 によるレビュー (4年前)I 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 (?)開発者の返信
投稿日時: 4年前Sorry 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? - 5 段階中 5 の評価Firefox ユーザー 17444643 によるレビュー (4年前)
- 5 段階中 5 の評価Mahdi Magroun によるレビュー (4年前)