Sorry http://127.0.0.1: <http://127.0.0.1:8000/>3001, 8000 is my local port for testing :)
On Thu, Jul 26, 2012 at 9:16 AM, hd nguyen <[email protected]> wrote: > Your action should be "http://127.0.0.1:8000". > > > On Thu, Jul 26, 2012 at 8:32 AM, josh <[email protected]> wrote: > >> I have existing ruby site with a big csv file I need to upload, process >> and send some progress info to the browser and to a mysql. >> I decided to do that upload + process in node by POSTING to my node >> server and use socket.io to push some stats back to the browser. >> >> I have a form with action='127.0.0.0:3001' >> the problem I have is I don't see the request coming to my server. here >> is the client and the server code: >> >> >> //index.html >> >> <!DOCTYPE html> >> <html> >> <head> >> <title>File Upload</title> >> </head> >> <body> >> <form *action="127.0.0.1:3001"* enctype="multipart/form-data" >> method="post"> >> <input type="text" name="title"> >> <input type="file" name="uplmad" multiple="multiple"> >> <input type="submit" value="Upload"> >> </form> >> </body> >> </html> >> >> // server.js >> var http = require('http'); >> >> http.createServer(function(req, res) { >> console.log('request coming'); >> res.end(); >> }).listen(3001); >> >> console.log('listen on 3001'); >> >> >> also, correct me if i understand my options here: >> >> 1) have my node server on the same machine that runs my ruby. >> use the same host with different port by using reverse-proxy such as >> nginx. >> >> 2) have my node server on different machine, the form's action will be ' >> my-node-server.com' >> >> the downside of #1 is some performance hit due to the reverse proxy. >> is there any downside for #2? maybe something to do with ajax requests or >> socket.io? >> >> -- >> 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 >> > > > > -- > Nguyen Hai Duy > Mobile : 0914 72 1900 > Yahoo: nguyenhd_lucky > -- Nguyen Hai Duy Mobile : 0914 72 1900 Yahoo: nguyenhd_lucky -- 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
