Trick: how to use cmwap to access Internet (Symbian)

xiaoxiao2021-03-06  37

Cmwap is an access point defined by CMCC.In fact it means to access internet using a http proxy .The following code segment demonstrates the http request data format with proxy used iHttpRequest.Zero ();. IHttpRequest.Append (_L8 ( "GET" )); IHTTPREQUEST.APpend (apath); IHTTPREQUEST.APpend (_l8 ("http / 1.1 / r / n"))); // if proxy buy httprequest.append (_l8 ("host:")); IHTTPREQUEST.APpend ( _L8 ("10.0.0.172:80/r/N")))); // cmwap proxy httprequest.append (_l8 ("x-online-host:"); httprequest.append (iServerName); // iServerName is The Server You want to visit through the proxy. IHTTPREQUEST.APpend (_l8 ("/ r / n")); IHTTPREQUEST.APpend (_l8 ("Connection: Close / R / N / R / N / R / N"));

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

New Post(0)