On May 3, 6:29 am, Anand George <[email protected]> wrote:
> , maxRedirects: '1'

What if you set this to the number 1 instead of a string of '1' (e.g.
maxRedirects: 1)?

> , function (error, response, body) {
>     console.log(response.headers);
>
> })
>
> I get an error Cannot read property 'headers' of undefined

What does the error variable say when response is undefined?

-- 
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