Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

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


Ïà¹ØÎÊ´ð£º

ÔõÑùÈÃaspÍøÕ¾ÓÐwapÍøÖ·???????????¼±¼±¼±¼±¼±¼±

ÔõÑùÈÃaspÍøÕ¾ÓÐwapÍøÖ·???????????¼±¼±¼±¼±¼±¼±
http://www.spforum.net/xinwen/newsfile/6/60326.html

ÄãÍøÒ³Ð´ÁËÂð£¿Ìí¼Ó¼¸¸ömimeÀàÐͲ»¾ÃÐÐÁËÂð£¿

ÄÄÔõôÌí¼ÓmimeÀàÐÍÄØ?????????????????????

Âé·³°Ñ´ ......

wmÊÖ»úsocketͨÐÅÄÜ×ßwap·½Ê½Âð

ÓÃsocket·¢ËÍÊý¾Ý£¬µ±½¨Á¢cmnetÍøÂçʱ£¬¿ÉÒÔÕý³£Í¨ÐÅ¡£
µ±ÍøÂçÊÇcmwapʱ£¬ÎÞ·¨½øÐÐsocketͨÐÅ¡£ 

Èç¹ûҪʹwapÍøÂçÒ²ÄÜÕý³£Í¨ÐÅ£¬Òª½øÐÐʲô²Ù×÷ÄØ¡£
httpͨÐŵĵײã¾ÍÊÇsocket£¬ËùÒÔcmwapÊÇ¿ÉÒÔ½øÐ ......

asp.net wapÍøÕ¾¿ª·¢£¬¿Ø¼þ»»ÐÐÎÊÌâ

¿Ø¼þ½âÊ͵½¿Í»§¶Ëʱ£¬×Ô¶¯¼ÓÁËbr
»»ÐÐÁË£¬Õâ¸ö¿ÉÒÔ½â¾öÂ𣿲»ÈÃËû×Ô¶¯¼Óbr
<br /> Ç¿ÖÆ»»ÐÐ

ÏÖÔÚÎÊÌâÊÇ£¬ÎÒ²»Ïë»»ÐÐ
´úÂëÈ磺
<mobile:Image ID="ErrorImage" Runat="server" I ......

ÈçºÎÔÚwmÉÏʵÏÖCDMAµÄwapͨÐÅ

ÎÒÔÚwmÉÏÓõçÐŵÄCDMAÍøÂ磬wap·½Ê½ÁªÍø£¬Á¬µÄÊÇ10.0.0.200£¬µ«ÊÇÿ´Î·¢ËÍÍêÊý¾Ýºó£¬½ÓÊÕµ½-1µÄ´íÎ󣬲»ÖªµÀΪʲô£¬·¢Ë͵İüµÄ¸ñʽÈçÏ£º
POST /sdread/portal.do?Id=0 HTTP/1.1
X-Online-Host: st30.sdread.net: ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ