From the server comes a GET request of the form:
http://qwe.rt/?foo=bar It is necessary to extract the bar parameter from the GET request, and create a new GET request to send to the server. How to do this in Node.js? At the moment there is a server that listens to the port, accepts the request and displays it on the console.
var http = require('http'); http.createServer(function(request, response) { console.log(request.url); response.end(); }).listen(8888); console.log("Server has started");