I don't know about nodes http.request, but the standard way to do this is http(s)://serveraddress:port/yadda/yadda?question=answer. If the :port isn't part of the server address, then the default socket for the protocol in the URL is used (80 for http, 443 for https, etc) Mark
On Thursday, October 17, 2013 3:33:53 PM UTC-5, Geoff Van Brunt wrote: > > I have an app in which a hardware device will connect and keep a socket > open. I then need to make rest calls using that same socket. How can an use > http.request and assign a socket to it? I've been searching low and high > for some insight on this, but so far no luck. I found some outdated stuff > before the days of the agent etc, but nothing current. > > Any help would be appreciated. > > Thanks > Geoff Van Brunt > -- -- 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.
