Assuming you're talking about a CDC device, then the java.net.URLConnection is available, so you can use straight HTTP.
If you're asking about CLDC, then you'll need to fudge something with the classes in the javax.microedition.io package which -if I interpret the javadocs correctly- implement something akin to sockets.