Unable to make php curl request with port number

后端 未结 6 874
一生所求
一生所求 2020-12-06 17:23

I am unable to make a php curl request with port number , without port number i am getting response properly.

Through terminal when i do curl http://www.sample.com

6条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-06 17:35

    Try to set

    curl_setopt($ch,CURLOPT_PORT, 8088);
    

    See more info http://php.net/manual/en/function.curl-setopt.php

提交回复
热议问题