Hi,
I use following code to redirect to a url:

res.writeHead(302, {
            'Location': gotoURL
          })
          res.end()

this works quite well, but when I called it from a client using
superagent, I got:
{ [Error: getaddrinfo ENOENT] code: 'ENOTFOUND', errno: 'ENOTFOUND',
syscall: 'getaddrinfo' }

what is a proper way to write a 302? thanks,

angelo

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to