Top "Node-request" questions

A node.

pass JSON to HTTP POST Request

I'm trying to make a HTTP POST request to the google QPX Express API [1] using nodejs and request [2]. My code …

json node.js curl express node-request
How to get cookies from request module in node.js?

function getCookies(){ request('http://google.com', function (error, response, body) { if (!error && response.statusCode == 200) { console.log(response.headers); } }) } …

node.js cookies node-request
Node.js GET Request ETIMEDOUT & ESOCKETTIMEDOUT

I'm using Node.js - async & request module to crawl 100+ millions of websites and I keep bumping into errors …

javascript node.js node-request
NodeJS Request: How do I get `response.statusCode` when piping?

Sorry guys, I'm kind of lost. How can I console.log response.statusCode when piping? var express = require('express'); var …

node.js express node-request
Nodejs Request Promise How to display status code

I am using the request library to make external api calls. https://github.com/request/request. I am using the …

node.js express node-request request-promise
Streaming an uploaded file to an HTTP request

My goal is to accept an uploaded file and stream it to Wistia using the the Wistia Upload API. I …

node.js express node-request busboy wistia
Why doesn't request.on() work in Node.js

I'm trying to get some data from a third party service using the node request module and return this data …

javascript node.js stream node-request
Returning a string value from a promise

In the code below, you see me making an HTTP request. I parse the response and pull out and a "…

javascript node.js node-request
How to make parameters Optional in node JS rest API

We need to Expose REST endpoint. There are three parameters, how to make those optional. Requirement is it should work …

node.js rest node-request
node express/request: piping a POST request with body parsing

I'm attempting to pipe a request for handling by a remote server, along the following lines: var destination = request(url); …

javascript node.js express node-request