0
votes
1answer
21 views

Writing async http returns in Nodejs

I realize this quesiton probably gets asked a million times but I'll try anyway. So I am used to Python and Ruby and 'blocking' imperative code blocks and objects and methods and trying to learn this ...
0
votes
1answer
14 views

How to send node.js http request via proxy (using require('http').request method)

Probably related to How can I use an http proxy with node.js http.Client? I've read this post, and tried it here. https://gist.github.com/lessmind/5704519 the request function sends a request to ...
0
votes
0answers
10 views

Consuming and log xml post request on node.js

Hi all im very new with js and node.js in general. I pretend to keep a live a service that consumes simple http post requests with xml messages and log then to simple txt files or xml files, or if ...
1
vote
1answer
13 views

node.js http 'get' request with query string parameters

I have a Node.js application that is an http client (at the moment). So I'm doing: var query = require('querystring').stringify(propertiesObject); http.get(url + query, function(res) { ...
0
votes
0answers
31 views

NodeJS load test poor performance (EADDRNOTAVAIL)

I'm beginning with web applications using NodeJS and there is one problem with my app I don't know how to solve. the application (we use expressjs) is running smooth on my local machine but, when we ...
1
vote
1answer
31 views

ngnix location directive not working

I have a below sample url format http://test.example.com:3000/samp/value?AP=API&SE=AU where value is dynamic Below is my ngnix config file #pid logs/nginx.pid; events { ...
0
votes
0answers
35 views

Determining which HTTP headers to forward from nginx to node.js

In this answer http://stackoverflow.com/a/5015178/2308693 the user Joao Da Silva showed what HTTP headers he forwards from nginx to Node.js. How do you know what headers Node.js needs? Are there ...
5
votes
2answers
46 views

Node.JS Wait for callback of REST Service that makes HTTP request

I am using express module to make a Restful API within Node.JS. In my service I am making additional http requests to outside Endpoints(server side) and I need to return the data from those http ...
0
votes
1answer
22 views

are there performance drawbacks to sending large messages over Socket.io vs. GET?

I'm building an app that uses socket.io. User goes to page, connects to socket, does some stuff in the app etc. All changes within the app (say a text field is changed) are sent over the socket, ...
0
votes
1answer
60 views

Node.JS function the returns http response value

I need to call a function that makes an http request and have it return the value to me through callback. However, when I try I keep getting null response. Any help? Here is my code: var url = ...
0
votes
1answer
22 views

Using browser module to submit form in node.js

I used the browser module (https://github.com/shinout/browser) to test form submission in node.js and it was successful by running the following code: var $b = new browser(); $b.submit({ from : ...
0
votes
0answers
10 views

Serve a file while it's being downloaded

What's the best way to serve a file while it's being downloaded by the server? I tried to pipe the ClientResponse to the ServerResponse but the file is stored in memory. The distant machine I'm ...
-1
votes
0answers
26 views

Node js: callback function executed long after http request completed

I tested whether the callback function was executed immediately after the http request was finished (see code below), but I found a very weird problem of node js. I used a http traffic monitor tool to ...
0
votes
1answer
37 views

calculating time taken by the http request using express node.js

I am logging the every server call details in plaintext file using node.js and express in the extended log format, For this i need to find out the length of time that the action took(http get or ...
0
votes
1answer
24 views

How to send an image via Node.js/Express, so it is cached permanently?

What are the required http headers to tell the browser to cache an image forever, when sending it via Node.js?

1 2 3 4 5 29
15 30 50 per page