the code:
var http = require('http');
http.createServer(function (req, res) {
console.log(req.url);
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello World\n');}).listen(1337);
console.log('Server running at 1337');
I install the node-v0.6.18 on window7 and linux
cat /etc/issue
Red Hat Enterprise Linux AS release 4 (Nahant Update 8)
Kernel \r on an \m
the submit url is "http://127.0.0.1:1337/contacts?id=中文"
the result:
widnows7
linux
ie9 browser:get the hello world
page browser:get nothing
server print:
/contacts?id= server
print: nothing
firefox21.0 browser:get the hello world
page browser:get the hello
world page
server print:/contacts?id=%E4%B8%AD%E6%96%87
server print:/contacts?id=%E4%B8%AD%E6%96%87
I search the google, someone says it's an msie bug, it does not encode the
parameter.
But i don't know why it works on windows7 but not works on linux.
--
--
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.