How to use PHP CURL to bypass cross domain

前端 未结 2 1943
长发绾君心
长发绾君心 2021-01-15 10:54

I need PHP to submit paramaters from one domain to another. JavaScript is not an option for my situation. I\'m now trying to use CURL with PHP, but have not been successful

2条回答
  •  半阙折子戏
    2021-01-15 11:17

    Using false in CURLOPT_RETURNTRANSFER doesn't return anything by curl. make it true(or 1)

    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    

提交回复
热议问题