OPTS Url {
protocol: 'http:',
slashes: true,
auth: 'root:00000000',
host: '10.0.0.1',
port: null,
hostname: '10.0.0.1',
hash: null,
search: null,
query: null,
pathname: '/do_value/slot_0/ch_2',
path: '/do_value/slot_0/ch_2',
href: 'http://10.0.0.1/do_value/slot_0/ch_2',
method: 'PUT',
headers: { 'content-type': 'application/json', 'content-length': 16 } }
BODY { Ch: 2, Val: 0 }
Hmm. Well, content-length certainly seems to be set correctly, logging as you suggest. In fact, take a look:
OPTS Url {
...
headers: { 'content-type': 'application/json', 'content-length': 16 } }
BODY { Ch: 2, Val: 0 }
- PUT /do_value/slot_0/ch_2 HTTP/1.1
Host: 10.0.0.1
Connection: keep-alive
Content-Length: 16
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36
Postman-Token: 53751de3-b402-b51d-c35e-0366d6ab90f2
Cache-Control: no-cache
Origin: chrome-extension://fhbjgbiflinjbdggehcddcbncdddomop
Authorization: Basic cm9vdDowMDAwMDAwMA==
Content-Type: text/plain;charset=UTF-8
Accept: */*
Accept-Encoding: gzip, deflate, sdch
Accept-Language: sv-SE,sv;q=0.8,en-US;q=0.6,en;q=0.4
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/c506906a-aed0-4744-abf7-0a32e3faefac%40googlegroups.com.--
http://nodered.org
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+unsubscribe@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.