首頁  >  文章  >  後端開發  >  php调Java接口传值

php调Java接口传值

WBOY
WBOY原創
2016-06-06 20:25:022012瀏覽

如何利用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