tomas/needle — pull request #19 by agnunez (2013-02-26 14:32:25+00:00)
Title: Added option for http port different from default 80

Hi,

I didn't find the way to use a different port from 80. I did a q&d change, I'm sure you can integrate better, but now I can use for post an auth form into a 8xxx port like:

needle.post('http://url/path', 'par1=val1&par2=val2', { username: 'user', password: 'pass', port: 8000},

That is what I needed to control some arduinos ( i cannot use https with them).

Hope you integrate it better in your excellent needle.

Agustin
anunez@gmail.com
agnunez (github)