[Original] Using MOTO (perhaps all non-NOKIA) mobile phone via CMWAP for HTTP connection

xiaoxiao2021-03-06  208

(I really have a J2ME programming of Chinese characteristics ... -_-!)

/ *** Sample Code of http connection via cmwap * @Author clapton_xpathotmails * AssumeT you gonna connect to http://www.yourdomain.com/yourdir/your.file*/

String CMCC_Proxy = "http://10.0.0.172:80/"; // This is China Mobile's agent

HTTPConnection C = NULL; C = (httpConnection) Connector.Open (CMCC_Proxy "YourDir / Your.File"); C.SetRequestProperty ("x-online-host", "www.yourdomain.com"); // This is the key Location

// DEAL with connectionis = c.openinputstream ();

// ............ The same is the same.

转载请注明原文地址:https://www.9cbs.com/read-128795.html

New Post(0)