Linked Questions

9 votes
1 answer
30k views

Node.js https.post request [duplicate]

I am using Node.js and I need to send a POST request containing specific data to an external server. I am doing the same thing with GET, but this is a lot easier since I don't have to include the ...
Nhor's user avatar
  • 3,970
0 votes
0 answers
1k views

How does one get the html of a webpage from a url [duplicate]

So this question I thought would be beyond simple. Yet after a solid hour of searching JavaScript and node js documentation and other questions on this site I've only found things that have to do with ...
warspyking's user avatar
  • 3,133
1 vote
2 answers
663 views

Ajax POST from node.js server [duplicate]

I have Node.js server with Socket.IO, which communicate with Python server (Django). I need to perform POST from the node.js server (on specific method) to the Django server. I cannot use any jquery ...
gabi's user avatar
  • 1,123
234 votes
14 answers
644k views

How to make an HTTP GET request in Node.js Express?

How can I make an HTTP request from within Node.js or Express.js? I need to connect to another service. I am hoping the call is asynchronous and that the callback contains the remote server's response....
Travis Parks's user avatar
  • 8,725
153 votes
8 answers
401k views

POST data with request module on Node.JS

This module is 'request https://github.com/mikeal/request I think i'm following every step but i'm missing an argument.. var request = require('request'); request.post({ url: 'https://...
Diego Torres's user avatar
  • 5,298
123 votes
4 answers
220k views

How do I make a https post in Node Js without any third party module?

I'm working on a project that requires https get and post methods. I've got a short https.get function working here... const https = require("https"); function get(url, callback) { "use-strict"; ...
Nova's user avatar
  • 2,130
90 votes
11 answers
86k views

HTTP POST payload not visible in Chrome debugger?

I have checked out this and that. However, my debugger looks like below. Failure example . No form data, No raw content Raw example (* Although path is different from the screen capture, both of them ...
Mond Wan's user avatar
  • 1,912
60 votes
6 answers
271k views

Steps to send a https request to a rest service in Node js

What are the steps to send a https request in node js to a rest service? I have an api exposed like (Original link not working...) How to pass the request and what are the options I need to give for ...
vinod's user avatar
  • 8,430
50 votes
2 answers
156k views

Sending data through POST request from a node.js server to a node.js server

I'm trying to send data through a POST request from a node.js server to another node.js server. What I do in the "client" node.js is the following: var options = { host: 'my.url', port: 80, ...
Masiar's user avatar
  • 21.4k
48 votes
1 answer
64k views

How to handle POST request in node.js

I'm trying to handle a post request being sent to my node.js server. JavaScript file with a name server.js displays a form on the browser. I want access to the form values after they are posted to the ...
Sau's user avatar
  • 2,129
42 votes
7 answers
102k views

how to post data in node.js with content type ='application/x-www-form-urlencoded'

I'm having a problem in posting data in node.js with Content-type: 'application/x-www-form-urlencoded' var loginArgs = { data: 'username="xyzzzzz"&"password="abc12345#"', //data: { //...
rahul's user avatar
  • 930
45 votes
7 answers
212k views

How to send a POST request from node.js Express?

Could someone show me the simplest way to send a post request from node.js Express, including how to pass and retrieve some data? I am expecting something similar to cURL in PHP.
Chong Lip Phang's user avatar
24 votes
3 answers
84k views

AWS Lambda HTTP POST Request (Node.js)

I'm relatively new to AWS lambda function and nodejs. I'm working on to try and get the list of 5 cities in a country by using HTTP POST request from this website: "https://www.webservicex.net/...
Misuti's user avatar
  • 323
27 votes
1 answer
96k views

Node.js HTTPS POST Request Headers

I want to post a status update to a Facebook Group using Node.js. It seems Node.js doesn't send the header… var https = require('https'); var options = { host: 'graph.facebook.com', port: ...
user avatar
14 votes
4 answers
60k views

How to set Content-Length when sending POST request in NodeJS?

var https = require('https'); var p = '/api/username/FA/AA?ZOHO_ACTION=EXPORT&ZOHO_OUTPUT_FORMAT=JSON&ZOHO_ERROR_FORMAT=JSON&ZOHO_API_KEY=dummy1234&ticket=dummy9876&...
ekanna's user avatar
  • 5,782

15 30 50 per page
1
2 3 4 5 6