On a J2ME application, I have a socket server that listens for web browsers to connect.
I'd like to be able to send a <html><b>Hi</b></html> page, but it keeps showing up as text.
I don't know how to send the headers so the web page treats the server socket like a regular web server. Anyone know the lines that need to be printed, and how to print them? I'm using (and not working):
String responseWithHeader = "\nContent-type: text/html\n\n" + response;