WAP HttpConnectionÎÊÌâ
Java code:
public void run() {
gra.drawString("test",x,y,Graphics.LEFT| Graphics.TOP);
Font font = Font.getFont(Font.FACE_MONOSPACE, Font.STYLE_BOLD,
Font.SIZE_LARGE);
gra.setFont(font);
gra.setColor(0, 0, 0);
gra.drawRect(0, 0, this.getWidth(), this.getHeight());
// TODO Auto-generated method stub
javax.microedition.io.HttpConnection hc = null;
try {
hc = (HttpConnection) Connector
.open("http://110.43.5.66:8678/default.aspx");
} catch (IOException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
try {
System.out.println("connected");
System.out.println(hc.getResponseMessage());
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
DataInputStream dis = null;
try {
dis = hc.openDataInputStream();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
int length = (int)hc.getLength();
byte[] b = new
Ïà¹ØÎÊ´ð£º
wap 1.0 wml ÒÔÏÂÊÇʲôÒâ˼£¿
<onevent type="onenterforward"> <refresh> <setvar name="txtUserName" value="" /> <setvar name="txtPassword" ......
ÎÒÓÃasp.net¿ª·¢wapÕ¾µã£¬Íê³ÉºóÈ¥http://validator.w3.org/ÕâÀïÑéÖ¤ÎÒµÄWapÒ³ÃæÊÇ·ñ±ê×¼£¬ÆäËüÎÊÌâ¶¼¸ÄºÃÁË£¬
¾ÍÊ£ÕâÒ»¸ö´íÎóÁË£¬°´×ÖÃæÒâ˼Àí½âÊÇ˵nameÊôÐÔÒÑ´æÔÚ£¬ÀàËÆÕâÑùµÄ´íÎó»¹Óв»ÄÜÓÃborder ,align,sizeµ ......
ÓÃ.net¿ª·¢ÊÖ»úÍøÕ¾£¬¶ÔÓÚmobileºó׺µÄÓÐÊ²Ã´Çø±ð£¿±ØÐëÒªÓÃÒÆ¶¯¿Ø¼þÂð£¿ÁíÍ⣬ÈçºÎµÃµ½À´·ÃÕßµÄÊÖ»úºÅ¡£Ö§³Ö.cssºÍjavascriptÂð?
ÔõôûÈ˻شðѽ¡£55555.ÄѵÀÊÇ˵·ÖµÍÂð£¿
ÔõôûÈ˻شðѽ¡£55555.ÄѵÀÊÇ˵·ÖµÍ ......
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml&q ......