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网站开发的发展!如果WAP不支,谁能代之?
顶了
不会是想开发color站吧。那东西倒是赚钱,打击严厉
太高深的话题!!!!!!!!!!!!!
个人感觉没什么发展
对这方面,还没有接触过啊!
......
Windows Mobile C++
如何建立WAP 网络(用代码), 如何下载文件通过WAP 网络.
试过很多API(URLDownloadToFileW) 都不稳定, 有时成功, 有时失败.
哪位朋友做过, 可以给源代码最好.
cmwap网络拨号可以参会connecti ......
通过软件接收到数据库SQL SERVER 2005的短信息。用手机接收得知是WAP PUSH。
数据库中接收到的代码:
0029 0006 0006 0003 00AE 0081 00EA 008D 00CA 0002 0005 006A 0000 0045 00C6 0008 000B 0003 0068 0074 ......
XML 解析失败
XML 解析失败: 语法错误 (行号: 1, 字符: 0)
将文档重解析为 HTML
错误:
missing root element
规范:
http://www.w3.org/TR/REC-xml/
这是在本机上用OPERA打开就出现的问题.在服务器上是好的,请 ......
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站里 本身有 ......