php调Java接口传值

原创
2016-06-06 20:25:02 1460浏览

如何利用url形式给Java接口传值;类似于这样
http://localhost:8080/oms/router?appKey=00001&method=user.getSession&v=1.0&format=xml&service=subCreateSaleOrder&encrypt=1&content=4352345dfgsdfas&secret=34532452345/

php改用什么函数让Java那边能接收到

回复内容:

如何利用url形式给Java接口传值;类似于这样
http://localhost:8080/oms/router?appKey=00001&method=user.getSession&v=1.0&format=xml&service=subCreateSaleOrder&encrypt=1&content=4352345dfgsdfas&secret=34532452345/

php改用什么函数让Java那边能接收到

头没要求的就 file_get_contents('http://localhost:8080/oms/router?appKey=00001&method=user.getSession&v=1.0&format=xml&service=subCreateSaleOrder&encrypt=1&content=4352345dfgsdfas&secret=34532452345/');
有要求的就Curl

传值也是这样写吗

声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn核实处理。