Error trying to send HTTP request

Hey guys, I’m running into a perplexing problem. I’m pretty sure I’m calling this code correctly, but maybe I’m missing something?

Here’s the error I get:

2014-06-11 21:01:34 UTC-7 [Status] Device Booting; 2.93% program storage used
2014-06-11 21:01:34 UTC-7 [Device] af0f28a - release-27.10 - Fri Dec 13 11:08:38 2013
2014-06-11 21:01:34 UTC-7 [Device] ERROR: the index ‘http’ does not exist
2014-06-11 21:01:34 UTC-7 [Device] ERROR: at main:27

And here’s the line of code (line 27):

http.get(“http://www.google.com”, {}).sendsync();

Any idea why this might be happening? This seems like an extremely minimal test case. Is the “http” module just missing?

i’m not a code guru, but it seems that you are running this code from the device instead of running it from the agent
https://electricimp.com/docs/api/http/get/

Doh. Yup, that was it. Thanks!