http Á¬½ÓwapÍøÕ¾Á¬½Ó²»ÉÏ,´úÂëÈçÏ£¡£¡£¡£¡£¡
»¹ÓÐÎÒÎÊÏ£¬Ä£ÄâÆ÷²âÊÔ³ÌÐòµÄʱºòÊDz»ÊDz»ÄܲâÊÔÁ¬½Ó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
Ïà¹ØÎÊ´ð£º
ÓõÄÊÇMTK_6235_09A°æ±¾£¬ÓÃsocketʵÏÖhttp·¢ËÍÇëÇó¸ø·þÎñÆ÷£¬ÄܽÓÊÕµ½·þÎñÆ÷·µ»ØµÄ²¿·ÖÊý¾Ý£¬ÓõÄÊDZ±¾©ÁªÍ¨µÄ¿¨£¬ÓÃuniwap·½Ê½ÁªÍø£¬ÊÕµ½µÄÏìÓ¦¸ñʽÈçÏ£º
HTTP/1.1 200 OK
Content-Type: application/octet-str ......
ÓÃ.net¿ª·¢ÊÖ»úÍøÕ¾£¬¶ÔÓÚmobileºó׺µÄÓÐʲôÇø±ð£¿±ØÐëÒªÓÃÒƶ¯¿Ø¼þÂð£¿ÁíÍ⣬ÈçºÎµÃµ½À´·ÃÕßµÄÊÖ»úºÅ¡£Ö§³Ö.cssºÍjavascriptÂð?
ÔõôûÈ˻شðѽ¡£55555.ÄѵÀÊÇ˵·ÖµÍÂð£¿
ÔõôûÈ˻شðѽ¡£55555.ÄѵÀÊÇ˵·ÖµÍ ......
ÔÚweb.configÖÐÅäÖÃ
<globalization fileEncoding="UTF-8" requestEncoding="UTF-8" responseEncoding="UTF-8" />
aspxÒ³Ãæ
<%Response.ContentType = " ......
¾ÍÏñwebÀïÃæµÄjsp¿Õ¼äPHP¿Õ¼äÍйÜÕâÑùµÄ£¬ÄÜÉÏ´«wmlÒ³ÃæºÍÁ¬Êý¾Ý¿âµÄ¡£ÎÒÖªµÀtagtagÕâÑùµÄ£¬µ«ÊÇÖ»ÄÜÔÚËü¹æ¶¨µÄ·¶Î§ÄÚдÄÚÈݶø²»ÄÜд´úÂë¡£
¸÷λ´óÏÀÓÐËÖªµÀ¹úÄÚ»ò¹úÍâµÄÃâ·ÑwapÍйÜÂð£¿Âé·³¸æËßÒ»Éùлл£¡
Óðٶ ......
Æäʵ£¬ÎÒÊÇÐÂÊÖ£¬²»»á¶øÒÑ£¬ÎÒ×Ô¼ºËÑË÷ÁËÏÂ×ÊÁÏ£¬¿´µ½ÓÐwap1.2ºÍwap2.0Ö®·Ö£¬ºÃÏñ»¹ÒªÑ§Ï°wmlÓïÑÔºÍasp£¬ÎÒÊÇj2ee³öÉí£¬Ñ§ÆðÀ´Ò²²»»áºÜÄÑ£¬µ«ÊÇÖ»ÊÇÏë³¢ÊÔÏÂÓÃj2ee¿ª·¢wap£¬ÏÈÎÊÌâÈçÏ£º
1.j2ee¿ª·¢wapÍøÕ¾¿ÉÐÐÐÔ£¬ ......