Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Node.js -- Questions about fields in a POST

Node.js -- Questions about fields in a POST

Problem

I am looking at this Gist (trying my hand at slightly more difficult Node than normal (I know this is still pretty simple :P )): https://gist.github.com/833401

I was wondering why we must specify the

connection.write('?track=' + this.track);

at the end? It has already been established in the Request URL. Is this behavior specific to Twitter's API, or is this some sort of Node semantics with POST requests in Node?

Looking forward to your answers!

Problem courtesy of: Luke Cycon

Solution

It's specific to twitter API. You generally don't need to do something like this with normal post requests.

Solution courtesy of: Pavan Kumar Sunkara

Discussion

View additional discussion.



This post first appeared on Node.js Recipes, please read the originial post: here

Share the post

Node.js -- Questions about fields in a POST

×

Subscribe to Node.js Recipes

Get updates delivered right to your inbox!

Thank you for your subscription

×