I already have a request object. Now all i have to do is change the host and make http request again.
//URL type : www.something.com/a/b?w=2&e=2
fun(req,res){
options = {
host : <newhost>
method : req.method
path : req.path
headers : req.headers
}
http.request(options,...)
}
Now how do i send query string(w=2&e=2) in this option.
I can do it using request module(in nodejs) but that follows redirect(HTTP 302) as well.
Thanks,
Shantanu
followRedirect: false