Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var http = require("http");
- var options = {
- "method": "GET",
- "hostname": "hl7.org",
- "port": "80",
- "path": "/fhir/address-use",
- "headers": {
- "content-type": "application/json",
- "accept": "application/json",
- "cache-control": "no-cache",
- "postman-token": "4b785d12-3272-c204-bd78-82931a4b267b"
- }
- };
- 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();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement