how to send HTTP request by GET method in PHP to another website

后端 未结 5 2188
情话喂你
情话喂你 2021-02-20 06:57

I\'m developing a web application for sending SMS to mobile from website like 160by2.

I can prepare the URL required for the HTTP GET request as mentioned in the API pro

5条回答
  •  [愿得一人]
    2021-02-20 08:00

    nothing wrong with your code that I can see right off. have you tried pasting the url into a browser so you can see the response? you could even use wget to download the response to a file. I suppose if you want to try fsocket that you would use port 80 as that's the default http port.

提交回复
热议问题