Symfony Framework in China Mobile Cmwap network access issues, symfonycmwap_php tutorial

Source: Internet
Author: User

Symfony Framework in China Mobile Cmwap network access issues, Symfonycmwap


Recently used Symfony framework to the mobile phone app backstage, found in China Mobile Cmwap network problems, all requests are routed to the root path

The image on the left is the original $_server object, and the image on the right is the $request->server object
Because Request_uri is changed, any request will be routed to the root path by the Symfony framework
and one less x-original-url request header.
Reason in the request class source code of Symfony

Can see when there is X-original-url request the head of the time to take it directly when Request-uri, but China Mobile cmwap more disgusting people, passed this head but did not pass right, now the code changed to

There is also the framework of the startup file Bootstrap.php.cache, which also has this code, the same changed to do it.


What kind of restrictions does China Mobile have on Cmwap?

In order to distinguish the two from the application of the positioning, China Mobile to cmwap made a certain limit, mainly in the Cmwap access can only access the GPRS network IP (10.*.*.*), and no

Access to the Internet through routing. (mobile networks in a few regions may not have this limitation.) We use Cmwap to browse Web pages on the Internet via the WAP Gateway protocol or it provides

HTTP Proxy service is implemented.
Speaking of this, let me naturally associate with our company's network, I believe that many of the work of friends have similar experience. The company's network does not provide routing and NAT on the gateway, only

Provides an HTTP proxy that can access the external network. In this way, we will not be able to directly use QQ, MSN and other non-HTTP protocol applications (fortunately they also provide an HTTP proxy connection

)。 Cmwap is also

(4) Scope of application

The scope of application is the most concern of the people. Cmnet has full access to the Internet, there is not much to say, mainly let us look at Cmwap. Because with the limitations mentioned above,

Cmwap, the scope of application of the WAP gateway is to see the support provided. Currently, China Mobile WAP Gateway only provides HTTP proxy protocol (80 and 8080 ports) and WAP Gateway Protocol

(9201 ports). (according to some netizens mentioned that port 1080 is also open, but unable to connect.) This may be a socks backdoor used by the mobile interior ^_^).

Urgent for China Mobile internal Cmwap Internet IP and port problems

You call to ask 10086,cmnet and Cmwap is not the same charge, if it is the same, change the Cmwap cmnet speed will be a little faster.

Beijing side Cmnet and Cmwap no longer distinguish between

http://www.bkjia.com/PHPjc/892524.html www.bkjia.com true http://www.bkjia.com/PHPjc/892524.html techarticle symfony Framework in the China Mobile Cmwap network access issues, SYMFONYCMWAP recently used Symfony framework to the mobile phone app backstage, found in China Mobile Cmwap network problems, all requests ...

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.