請問使用GatewayWorker 的 WebServer 如何接收post數(shù)據(jù)?,并將post上來的數(shù)據(jù)進(jìn)行一些處理比如進(jìn)行轉(zhuǎn)發(fā)給tcp客戶端,謝謝
WebServer里面接收post和普通php用法一樣,用$_POST就行。
見手冊:http://doc3.workerman.net/advanced/webserver.html
在其它非GatewayWorker項目中推送數(shù)據(jù)給GatewayWorker客戶端可以用GatewayClient來做。
見手冊:http://www.wtbis.cn/gatewaydoc/advanced/push.html