HTTP Get/Request From New Device Type

I am creating a new device type (switch capability). When turned on/off all it does is send an http request. I need some sample code to do that. I am not sure how to invoke an http request when on/off command is executed. Any help would be greatly appreciated.

Thanks.

@hmayasi have you seen docs.smartthings.com ?

The best example would be the WeMo Service Manager and child devices.