On 30 May 2013 12:15, James Coglan <[email protected]> wrote:
> I've now generated a self-signed cert for lvh.me and the client has
> stopped emitting errors. However, it doesn't emit a response either, the
> script just hangs. What's going on?
>
It turns out the server is not receiving the request, but I'm not sure why.
I can make a TLS connection to the server and write a request myself, and
it works:
var tls = require('tls'),
fs = require('fs');
var options = {ca: [fs.readFileSync('./server.crt')]};
var connection = tls.connect(8000, 'lvh.me', options, function() {
console.log('connect');
connection.write('GET / HTTP/1.1\r\n' +
'Host: lvh.me\r\n' +
'\r\n');
});
connection.on('error', function(error) {
console.log('ERROR', error);
});
--
--
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
---
You received this message because you are subscribed to the Google Groups
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.