mirror of
https://github.com/Kong/insomnia.git
synced 2026-10-22 23:05:25 -04:00
Curl generation query params bug (Fixes #810)
This commit is contained in:
1 parent
87ccc34bad
commit
d5b75c7d32
392 files changed
+13180
-4
No files matched your search
+24
@@ -0,0 +1,24 @@
|
||||
var http = require("https");
|
||||
|
||||
var options = {
|
||||
"method": "GET",
|
||||
"hostname": "mockbin.com",
|
||||
"port": null,
|
||||
"path": "/har",
|
||||
"headers": {}
|
||||
};
|
||||
|
||||
var req = http.request(options, function (res) {
|
||||
var chunks = [];
|
||||
|
||||
res.on("data", function (chunk) {
|
||||
chunks.push(chunk);
|
||||
});
|
||||
|
||||
res.on("end", function () {
|
||||
var body = Buffer.concat(chunks);
|
||||
console.log(body.toString());
|
||||
});
|
||||
});
|
||||
|
||||
req.end();
|
||||
Reference in new issue
Block a user