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" ......
最近用.net开发一个wap的应用,由于只能使用mobile控件,在用户注册登陆注销等方面不知道怎么弄,哪位高人给我指点一下,谢谢~~
wap和web是一样的。
微软的控件思维把web程序员搞傻了。
引用
wap和web是一样的 ......
我在wm上用电信的CDMA网络,wap方式联网,连的是10.0.0.200,但是每次发送完数据后,接收到-1的错误,不知道为什么,发送的包的格式如下:
POST /sdread/portal.do?Id=0 HTTP/1.1
X-Online-Host: st30.sdread.net: ......
在web.config中配置
<globalization fileEncoding="UTF-8" requestEncoding="UTF-8" responseEncoding="UTF-8" />
aspx页面
<%Response.ContentType = " ......
SQL code:
rs.open "select * from guide where city_name='北京' order by pai desc",conn,1,1
do while not rs.eof or rs.bof
。。
。。
。。
rs.movenext
loop
这个sql语句在wap站里 本身有 ......