Using javascript to access Google's URL shortener APIs in a Google Chrome extension
问题 I am writing my first google chrome extension which will use Google's URL shortener api to shorten the URL of the currently active tab in Chrome. I am a longtime sw developer (asm/C++) but totally new to this "webby" stuff. :) I can't seem to figure out how to make (and then process) the http POST request using js or jquery. I think I just don't understand the POST mechanism outside of the curl example. My javascript file currently looks like this: chrome.browserAction.onClicked.addListener