http 连接wap网站连接不上,代码如下!!!!!
还有我问下,模拟器测试程序的时候是不是不能测试连接wap网站!!
Java code:
void getViaHttpConnection(String url) throws IOException
{
HttpConnection c = null;
InputStream is = null;
int rc = 0;
try
{
c = (HttpConnection) Connector.open("http://10.0.0.172:80/+?sid=.7e4adab1d4644bd8982f8e4e7bdd81f4&sprefer=sypd05", Connector.READ, true);
c.setRequestProperty("X-Online-Host", "http://m.taobao.com/");
c.setRequestProperty("User-Agent", System.getProperty("microedition.profiles"));
c = (HttpConnection) Connector.open("http://10.0.0.172:80/+?sid=.7e4adab1d4644bd8982f8e4e7bdd81f4&sprefer=sypd05", Connector.READ, true);
c.setRequestProperty("X-Online-Host", "http://m.taobao.com/");
c.setRequestProperty("User-Agent", System.getProperty("microedition.profiles"))
rc = c.getResponseCode();
if (rc != HttpConnection.HTTP_OK)
{
throw new IOException("HTTP response code: " + rc);
}
is = c.openInputStream();
// Get the ContentType
String
相关问答:
知名互联网公司
Wap前台开发工程师 招聘
工作地点:北京
基本要求
计算机相关专业本科以上学历
有两年以上软件开发经验,了解WAP网关接入及相关网络知识,了解WAP系统运行机制
精通WML、XHTML语言,掌握CSS、J ......
控件解释到客户端时,自动加了br
换行了,这个可以解决吗?不让他自动加br
<br /> 强制换行
现在问题是,我不想换行
代码如:
<mobile:Image ID="ErrorImage" Runat="server" I ......
做一个wap网站,C#语言 VS2005的移动web窗口 制作 sql2000数据库
我自己没有服务器, 要租用或托管什么样的 服务器来放我的网站啊·?
空间要求是什么样的啊·?
还有2小时下班 ......
<!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 ......