Unable to make php curl request with port number

后端 未结 6 853
一生所求
一生所求 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:43

    Make sure that the port 8080 is enabled in Cent OS

    and try this curl_setopt($ch, CURLOPT_PORT, 8088);

提交回复
热议问题