Hi,

Got a very simple http server with following code:

res.writeHead(302, {'Location': 'http://sample.com/"})
res.end()

now do a :

curl -i -v http://ip_goes_here:9090/test

it returns:
* Connected to ... port 9090 (#0)
> GET /test HTTP/1.1
> User-Agent: curl/7.26.0
> Host: ...:9090
> Accept: */*
>
< HTTP/1.1 302 Moved Temporarily
HTTP/1.1 302 Moved Temporarily
< Location: http://sample.com/
Location: http://sample.com/
< Date: Tue, 20 Nov 2012 08:29:29 GMT
Date: Tue, 20 Nov 2012 08:29:29 GMT
< Connection: keep-alive
Connection: keep-alive
< Transfer-Encoding: chunked
Transfer-Encoding: chunked
* Connection #0 to host ... left intact
* Closing connection #0

this is expected, immediately repeat the curl, usually got this:

About to connect() to ... port 9090 (#0)
*   Trying ...
* Operation timed out
* couldn't connect to host
* Closing connection #0
curl: (7) couldn't connect to host

is this the problem of curl side? or the node http app side?


-- 
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 nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to